#2F7412#2F7412
#2F7412 is a mid, vivid green. Relative luminance 0.131; OKLCH L 49.5% C 0.145 H 138.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7412 |
|---|---|
| RGB | rgb(47, 116, 18) |
| HSL | hsl(102, 73%, 26%) |
| HSV | hsv(102, 84%, 45%) |
| CMYK | cmyk(59.5%, 0%, 84.5%, 54.5%) |
| CIE-LAB | lab(42.97, -39.47, 43.27) |
| CIE-LCH | lch(42.97, 58.57, 132.37°) |
| OKLab | oklab(49.54% -0.109 0.0957) |
| OKLCH | oklch(49.54% 0.145 138.7) |
| XYZ | xyz(7.5266, 13.1381, 2.7114) |
| Luminance | 0.1314 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 3.52
Dark Grass Green
#388004
ΔE00 4.73
Green
#008000
ΔE00 4.90
Darkish Green
#287C37
ΔE00 6.06
Darkgreen
#006400
ΔE00 6.18
Forestgreen (CSS)
#228B22
ΔE00 8.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7412 #571274
analogous
#607412 #2F7412 #127426
triadic
#2F7412 #122F74 #74122F
tetradic
#2F7412 #126074 #571274 #742612
square
#2F7412 #126074 #571274 #742612
split-complementary
#2F7412 #261274 #741260
monochromatic
#0B1A04 #1A3F0A #2F7412 #44A91A #5ADD23
Accessibility & contrast
On white
5.79
#2F7412 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#2F7412 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7412
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7412 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7412 | 1.00 | 5.79 | 3.63 | 5.79 |
| #FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#6F631E
Tritanopia (blue-blind)
#287062
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #2f7412; /* rgb */ color: rgb(47, 116, 18); /* oklch */ color: oklch(49.5% 0.145 138.7);
Tailwind
colors: {
custom: {
50: '#719d5a',
500: '#2f7412',
950: '#000000',
},
}SCSS
$custom: #2f7412; $custom-light: #719d5a; $custom-dark: #000000;
JSON
{
"hex": "#2f7412",
"rgb": {
"r": 47,
"g": 116,
"b": 18
},
"hsl": {
"h": 102.245,
"s": 73.134,
"l": 26.275
},
"oklch": {
"l": 0.49535,
"c": 0.14503,
"h": 138.7
},
"luminance": 0.13139
}Semantic roles & 50–950 ramp
primary
#2F7412
secondary
#8837AB
accent
#38F0B9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79