#2F7D1F#2F7D1F
#2F7D1F is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.149 H 140.6°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7D1F |
|---|---|
| RGB | rgb(47, 125, 31) |
| HSL | hsl(110, 60%, 31%) |
| HSV | hsv(110, 75%, 49%) |
| CMYK | cmyk(62.4%, 0%, 75.2%, 51%) |
| CIE-LAB | lab(46.14, -42.04, 41.76) |
| CIE-LCH | lch(46.14, 59.26, 135.19°) |
| OKLab | oklab(52.18% -0.1151 0.0945) |
| OKLCH | oklch(52.18% 0.149 140.6) |
| XYZ | xyz(8.7528, 15.3697, 3.8014) |
| Luminance | 0.1537 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.84
Green
#008000
ΔE00 3.21
Dark Grass Green
#388004
ΔE00 3.33
Darkish Green
#287C37
ΔE00 4.44
Forestgreen (CSS)
#228B22
ΔE00 5.01
Emerald Green
#028F1E
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7D1F #6D1F7D
analogous
#5E7D1F #2F7D1F #1F7D3E
triadic
#2F7D1F #1F2F7D #7D1F2F
tetradic
#2F7D1F #1F5E7D #6D1F7D #7D3E1F
square
#2F7D1F #1F5E7D #6D1F7D #7D3E1F
split-complementary
#2F7D1F #3E1F7D #7D1F5E
monochromatic
#0A1B07 #1D4C13 #2F7D1F #41AE2B #5DD145
Accessibility & contrast
On white
5.15
#2F7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#2F7D1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7D1F
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7D1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7D1F | 1.00 | 5.15 | 4.07 | 5.15 |
| #FFFFFF | 5.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#24796B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #2f7d1f; /* rgb */ color: rgb(47, 125, 31); /* oklch */ color: oklch(52.2% 0.149 140.6);
Tailwind
colors: {
custom: {
50: '#72a361',
500: '#2f7d1f',
950: '#000000',
},
}SCSS
$custom: #2f7d1f; $custom-light: #72a361; $custom-dark: #000000;
JSON
{
"hex": "#2f7d1f",
"rgb": {
"r": 47,
"g": 125,
"b": 31
},
"hsl": {
"h": 109.787,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.52176,
"c": 0.14895,
"h": 140.6
},
"luminance": 0.1537
}Semantic roles & 50–950 ramp
primary
#2F7D1F
secondary
#9E48B0
accent
#44E3C8
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79