#2E7D1F#2E7D1F
#2E7D1F is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.149 H 140.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2E7D1F |
|---|---|
| RGB | rgb(46, 125, 31) |
| HSL | hsl(110, 60%, 31%) |
| HSV | hsv(110, 75%, 49%) |
| CMYK | cmyk(63.2%, 0%, 75.2%, 51%) |
| CIE-LAB | lab(46.10, -42.30, 41.72) |
| CIE-LCH | lch(46.10, 59.41, 135.39°) |
| OKLab | oklab(52.14% -0.1157 0.0944) |
| OKLCH | oklch(52.14% 0.149 140.8) |
| XYZ | xyz(8.7072, 15.3462, 3.7993) |
| Luminance | 0.1535 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.83
Green
#008000
ΔE00 3.16
Dark Grass Green
#388004
ΔE00 3.40
Darkish Green
#287C37
ΔE00 4.39
Forestgreen (CSS)
#228B22
ΔE00 5.00
Emerald Green
#028F1E
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E7D1F #6E1F7D
analogous
#5D7D1F #2E7D1F #1F7D3F
triadic
#2E7D1F #1F2E7D #7D1F2E
tetradic
#2E7D1F #1F5D7D #6E1F7D #7D3F1F
square
#2E7D1F #1F5D7D #6E1F7D #7D3F1F
split-complementary
#2E7D1F #3F1F7D #7D1F5D
monochromatic
#0A1B07 #1C4C13 #2E7D1F #40AE2B #5CD145
Accessibility & contrast
On white
5.16
#2E7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#2E7D1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2E7D1F
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E7D1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E7D1F | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#22796B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #2e7d1f; /* rgb */ color: rgb(46, 125, 31); /* oklch */ color: oklch(52.1% 0.149 140.8);
Tailwind
colors: {
custom: {
50: '#71a361',
500: '#2e7d1f',
950: '#000000',
},
}SCSS
$custom: #2e7d1f; $custom-light: #71a361; $custom-dark: #000000;
JSON
{
"hex": "#2e7d1f",
"rgb": {
"r": 46,
"g": 125,
"b": 31
},
"hsl": {
"h": 110.426,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.5214,
"c": 0.14939,
"h": 140.8
},
"luminance": 0.15347
}Semantic roles & 50–950 ramp
primary
#2E7D1F
secondary
#9F48B0
accent
#44E3CA
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79