#12571F#12571F
#12571F is a dark, moderate green. Relative luminance 0.070; OKLCH L 40.2% C 0.110 H 146.0°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).
Color values
| HEX | #12571F |
|---|---|
| RGB | rgb(18, 87, 31) |
| HSL | hsl(131, 66%, 21%) |
| HSV | hsv(131, 79%, 34%) |
| CMYK | cmyk(79.3%, 0%, 64.4%, 65.9%) |
| CIE-LAB | lab(31.91, -33.96, 26.13) |
| CIE-LCH | lch(31.91, 42.86, 142.42°) |
| OKLab | oklab(40.17% -0.0916 0.0617) |
| OKLCH | oklch(40.17% 0.11 146) |
| XYZ | xyz(3.9047, 7.0435, 2.4498) |
| Luminance | 0.0704 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Deep Green
#02590F
ΔE00 3.09
Forest Green
#2D5A27
ΔE00 3.39
Forest
#0B5509
ΔE00 3.47
Pine
#2B5D34
ΔE00 4.75
British Racing Green
#05480D
ΔE00 4.80
Bottle Green
#044A05
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12571F #57124A
analogous
#285712 #12571F #125741
triadic
#12571F #1F1257 #571F12
tetradic
#12571F #122857 #57124A #574112
square
#12571F #122857 #57124A #574112
split-complementary
#12571F #411257 #571228
monochromatic
#051909 #08240D #12571F #1C8A31 #27BC43
Accessibility & contrast
On white
8.72
#12571F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#12571F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12571F
8.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12571F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12571F | 1.00 | 8.72 | 2.41 | 8.72 |
| #FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#584E19
Deuteranopia (green-blind)
#504924
Tritanopia (blue-blind)
#00554B
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #12571f; /* rgb */ color: rgb(18, 87, 31); /* oklch */ color: oklch(40.2% 0.110 146.0);
Tailwind
colors: {
custom: {
50: '#5c875d',
500: '#12571f',
950: '#000000',
},
}SCSS
$custom: #12571f; $custom-light: #5c875d; $custom-dark: #000000;
JSON
{
"hex": "#12571f",
"rgb": {
"r": 18,
"g": 87,
"b": 31
},
"hsl": {
"h": 131.304,
"s": 65.714,
"l": 20.588
},
"oklch": {
"l": 0.40169,
"c": 0.1104,
"h": 146
},
"luminance": 0.07044
}Semantic roles & 50–950 ramp
primary
#12571F
secondary
#90357F
accent
#3FC9E9
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050B04
muted
#797C79