#2F7512#2F7512
#2F7512 is a mid, vivid green. Relative luminance 0.134; OKLCH L 49.8% C 0.146 H 138.8°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7512 |
|---|---|
| RGB | rgb(47, 117, 18) |
| HSL | hsl(102, 73%, 26%) |
| HSV | hsv(102, 85%, 46%) |
| CMYK | cmyk(59.8%, 0%, 84.6%, 54.1%) |
| CIE-LAB | lab(43.32, -39.86, 43.59) |
| CIE-LCH | lch(43.32, 59.07, 132.44°) |
| OKLab | oklab(49.82% -0.11 0.0964) |
| OKLCH | oklch(49.82% 0.146 138.8) |
| XYZ | xyz(7.6425, 13.3699, 2.7501) |
| Luminance | 0.1337 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 3.19
Dark Grass Green
#388004
ΔE00 4.41
Green
#008000
ΔE00 4.60
Darkish Green
#287C37
ΔE00 5.96
Darkgreen
#006400
ΔE00 6.47
Forestgreen (CSS)
#228B22
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7512 #581275
analogous
#617512 #2F7512 #127527
triadic
#2F7512 #122F75 #75122F
tetradic
#2F7512 #126175 #581275 #752712
square
#2F7512 #126175 #581275 #752712
split-complementary
#2F7512 #271275 #751261
monochromatic
#0B1B04 #1A400A #2F7512 #44AA1A #5ADD24
Accessibility & contrast
On white
5.72
#2F7512 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.67
#2F7512 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7512
5.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7512 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7512 | 1.00 | 5.72 | 3.67 | 5.72 |
| #FFFFFF | 5.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#70641E
Tritanopia (blue-blind)
#287163
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #2f7512; /* rgb */ color: rgb(47, 117, 18); /* oklch */ color: oklch(49.8% 0.146 138.8);
Tailwind
colors: {
custom: {
50: '#719d5a',
500: '#2f7512',
950: '#000000',
},
}SCSS
$custom: #2f7512; $custom-light: #719d5a; $custom-dark: #000000;
JSON
{
"hex": "#2f7512",
"rgb": {
"r": 47,
"g": 117,
"b": 18
},
"hsl": {
"h": 102.424,
"s": 73.333,
"l": 26.471
},
"oklch": {
"l": 0.4982,
"c": 0.14626,
"h": 138.8
},
"luminance": 0.13371
}Semantic roles & 50–950 ramp
primary
#2F7512
secondary
#8A37AC
accent
#38F0BA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79