#157212#157212
#157212 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.2% C 0.152 H 142.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).
Color values
| HEX | #157212 |
|---|---|
| RGB | rgb(21, 114, 18) |
| HSL | hsl(118, 73%, 26%) |
| HSV | hsv(118, 84%, 45%) |
| CMYK | cmyk(81.6%, 0%, 84.2%, 55.3%) |
| CIE-LAB | lab(41.59, -44.44, 41.74) |
| CIE-LCH | lch(41.59, 60.97, 136.80°) |
| OKLab | oklab(48.2% -0.1208 0.0928) |
| OKLCH | oklch(48.2% 0.152 142.5) |
| XYZ | xyz(6.4354, 12.2370, 2.5950) |
| Luminance | 0.1224 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.48
Darkgreen
#006400
ΔE00 4.69
Green
#008000
ΔE00 5.12
Darkish Green
#287C37
ΔE00 5.74
Dark Grass Green
#388004
ΔE00 6.52
Deep Green
#02590F
ΔE00 8.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#157212 #6F1272
analogous
#457212 #157212 #12723F
triadic
#157212 #121572 #721215
tetradic
#157212 #124572 #6F1272 #723F12
square
#157212 #124572 #6F1272 #723F12
split-complementary
#157212 #3F1272 #721245
monochromatic
#051A04 #0B3D0A #157212 #1FA71A #28DC23
Accessibility & contrast
On white
6.09
#157212 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#157212 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #157212
6.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##157212 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##157212 | 1.00 | 6.09 | 3.45 | 6.09 |
| #FFFFFF | 6.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#756600
Deuteranopia (green-blind)
#6B5F1E
Tritanopia (blue-blind)
#006E60
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #157212; /* rgb */ color: rgb(21, 114, 18); /* oklch */ color: oklch(48.2% 0.152 142.5);
Tailwind
colors: {
custom: {
50: '#669c59',
500: '#157212',
950: '#000000',
},
}SCSS
$custom: #157212; $custom-light: #669c59; $custom-dark: #000000;
JSON
{
"hex": "#157212",
"rgb": {
"r": 21,
"g": 114,
"b": 18
},
"hsl": {
"h": 118.125,
"s": 72.727,
"l": 25.882
},
"oklch": {
"l": 0.48197,
"c": 0.15229,
"h": 142.5
},
"luminance": 0.12238
}Semantic roles & 50–950 ramp
primary
#157212
secondary
#A537A9
accent
#38EFEA
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79