#2F7212#2F7212
#2F7212 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.143 H 138.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7212 |
|---|---|
| RGB | rgb(47, 114, 18) |
| HSL | hsl(102, 73%, 26%) |
| HSV | hsv(102, 84%, 45%) |
| CMYK | cmyk(58.8%, 0%, 84.2%, 55.3%) |
| CIE-LAB | lab(42.28, -38.69, 42.63) |
| CIE-LCH | lch(42.28, 57.57, 132.22°) |
| OKLab | oklab(48.97% -0.1069 0.0944) |
| OKLCH | oklch(48.97% 0.143 138.6) |
| XYZ | xyz(7.2985, 12.6820, 2.6354) |
| Luminance | 0.1268 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 4.19
Dark Grass Green
#388004
ΔE00 5.38
Green
#008000
ΔE00 5.52
Darkgreen
#006400
ΔE00 5.63
Darkish Green
#287C37
ΔE00 6.31
Darkolivegreen
#556B2F
ΔE00 8.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7212 #551272
analogous
#5F7212 #2F7212 #127225
triadic
#2F7212 #122F72 #72122F
tetradic
#2F7212 #125F72 #551272 #722512
square
#2F7212 #125F72 #551272 #722512
split-complementary
#2F7212 #251272 #72125F
monochromatic
#0B1A04 #193D0A #2F7212 #45A71A #5BDC23
Accessibility & contrast
On white
5.94
#2F7212 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#2F7212 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7212
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7212 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7212 | 1.00 | 5.94 | 3.54 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6D621E
Tritanopia (blue-blind)
#296E61
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #2f7212; /* rgb */ color: rgb(47, 114, 18); /* oklch */ color: oklch(49.0% 0.143 138.6);
Tailwind
colors: {
custom: {
50: '#709b59',
500: '#2f7212',
950: '#000000',
},
}SCSS
$custom: #2f7212; $custom-light: #709b59; $custom-dark: #000000;
JSON
{
"hex": "#2f7212",
"rgb": {
"r": 47,
"g": 114,
"b": 18
},
"hsl": {
"h": 101.875,
"s": 72.727,
"l": 25.882
},
"oklch": {
"l": 0.48965,
"c": 0.14256,
"h": 138.6
},
"luminance": 0.12683
}Semantic roles & 50–950 ramp
primary
#2F7212
secondary
#8637A9
accent
#38EFB8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79