#286212#286212
#286212 is a dark, vivid green. Relative luminance 0.092; OKLCH L 44.1% C 0.126 H 138.9°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).
Color values
| HEX | #286212 |
|---|---|
| RGB | rgb(40, 98, 18) |
| HSL | hsl(104, 69%, 23%) |
| HSV | hsv(104, 82%, 38%) |
| CMYK | cmyk(59.2%, 0%, 81.6%, 61.6%) |
| CIE-LAB | lab(36.42, -34.32, 36.99) |
| CIE-LCH | lch(36.42, 50.46, 132.85°) |
| OKLab | oklab(44.06% -0.0946 0.0827) |
| OKLCH | oklch(44.06% 0.126 138.9) |
| XYZ | xyz(5.3517, 9.2297, 2.0716) |
| Luminance | 0.0923 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Darkgreen
#006400
ΔE00 3.17
Deep Green
#02590F
ΔE00 4.34
Forest
#0B5509
ΔE00 4.81
Forest Green
#2D5A27
ΔE00 5.49
Navy Green
#35530A
ΔE00 6.22
Camouflage Green
#4B6113
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#286212 #4C1262
analogous
#506212 #286212 #126224
triadic
#286212 #122862 #621228
tetradic
#286212 #125062 #4C1262 #622412
square
#286212 #125062 #4C1262 #622412
split-complementary
#286212 #241262 #621250
monochromatic
#0B1A05 #132E09 #286212 #3D961B #52C925
Accessibility & contrast
On white
7.38
#286212 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.85
#286212 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #286212
7.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##286212 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##286212 | 1.00 | 7.38 | 2.85 | 7.38 |
| #FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#655901
Deuteranopia (green-blind)
#5E541B
Tritanopia (blue-blind)
#225E53
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #286212; /* rgb */ color: rgb(40, 98, 18); /* oklch */ color: oklch(44.1% 0.126 138.9);
Tailwind
colors: {
custom: {
50: '#6a8f57',
500: '#286212',
950: '#000000',
},
}SCSS
$custom: #286212; $custom-light: #6a8f57; $custom-dark: #000000;
JSON
{
"hex": "#286212",
"rgb": {
"r": 40,
"g": 98,
"b": 18
},
"hsl": {
"h": 103.5,
"s": 68.966,
"l": 22.745
},
"oklch": {
"l": 0.44057,
"c": 0.12567,
"h": 138.9
},
"luminance": 0.0923
}Semantic roles & 50–950 ramp
primary
#286212
secondary
#7E369A
accent
#3CECBB
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78