CSS named colour
Green
#008000
A CSS named colour: green is valid anywhere a colour is expected.
- RGB
- rgb(0 128 0)
- HSL
- 120°, 100%, 25%
- OKLCh
- 52.0% 0.177 142.5
Green in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #008000 | |
|---|---|---|
| RGB | rgb(0 128 0) | |
| RGB legacy | rgb(0, 128, 0) | |
| RGB percent | rgb(0% 50.2% 0%) | |
| HSL | hsl(120 100% 25.1%) | |
| HSL legacy | hsl(120, 100%, 25.1%) | |
| HSV / HSB | hsv(120, 100%, 50.2%) | |
| HWB | hwb(120 0% 49.8%) | |
| Nearest name | green | |
| CMYK | cmyk(100%, 0%, 100%, 49.8%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(51.975% 0.17686 142.495)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(51.975% -0.1403 0.10768) | |
| CIE LCh | lch(46.278% 67.984 134.384) | |
| CIE Lab | lab(46.278% -47.552 48.586) | |
| Display P3 | color(display-p3 0.216 0.4942 0.1315) | |
| Rec. 2020 | color(rec2020 0.2352 0.4317 0.0854) | |
| srgb-linear | color(srgb-linear 0 0.2159 0)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.0772 0.1544 0.0257) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.0, 0.502, 0.0)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.0, 0.216, 0.0)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.0, 0.502, 0.0, 1.0) | |
| GLSL vec4 — linear | vec4(0.0, 0.216, 0.0, 1.0) | |
| GLSL ivec3 | ivec3(0, 128, 0) | |
| HLSL float3 — sRGB | float3(0.0, 0.502, 0.0) | |
| HLSL float3 — linear | float3(0.0, 0.216, 0.0) | |
| HLSL float4 — sRGB | float4(0.0, 0.502, 0.0, 1.0) | |
| HLSL half4 — sRGB | half4(0.0, 0.502, 0.0, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.0, 0.502, 0.0) | |
| WGSL vec4f — sRGB | vec4f(0.0, 0.502, 0.0, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.0, 0.216, 0.0) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.0f, 0.502f, 0.0f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(0, 128, 0, 255) | |
| Unreal FLinearColor | FLinearColor(0.0f, 0.2159f, 0.0f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(0, 128, 0, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0, 0.502, 0, 1) | |
| Flutter Color | Color(0xFF008000)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(0, 128, 0) | |
| SwiftUI Color | Color(red: 0, green: 0.502, blue: 0) | |
| UIKit UIColor | UIColor(red: 0, green: 0.502, blue: 0, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x008000 | |
|---|---|---|
| 0x hex (ARGB) | 0xFF008000 | |
| Array 0–1 | [0, 0.502, 0] | |
| Array 0–255 | [0, 128, 0] | |
| Decimal integer | 32768 |
Contrast and accessibility
WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Green on white | 5.14:1 | AA | Lc 75 | Headings and large text |
| Green on black | 4.09:1 | AA Large | Lc 27 | Not usable for text |
Green text on a white background
Green text on a black background
White text on Green
Black text on Green
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#d8ffd3
- 100#b6ffaf
- 200#a1f59a
- 300#84e07d
- 400#61c35b
- 500#3ca537
- 600#1e891a
- 700#006f00
- 800#005a00
- 900#004700
- 950#002a00
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#43953e
- Tint 2#6bab66
- Tint 3#90c08c
- Tint 4#b5d5b2
- Tint 5#daead8
- Shade 1#006300
- Shade 2#004800
- Shade 3#002e00
- Shade 4#001600
- Shade 5#000300
Colours that work with Green
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #963ba3
- #2c61cd
- #b92c36
- #6b6f00
- #007e61
Closest CSS names
greenexact matchforestgreenΔEok 0.039seagreenΔEok 0.082darkgreenΔEok 0.088darkolivegreenΔEok 0.097olivedrabΔEok 0.099