#2D7D1F#2D7D1F
#2D7D1F is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.150 H 141.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2D7D1F |
|---|---|
| RGB | rgb(45, 125, 31) |
| HSL | hsl(111, 60%, 31%) |
| HSV | hsv(111, 75%, 49%) |
| CMYK | cmyk(64%, 0%, 75.2%, 51%) |
| CIE-LAB | lab(46.07, -42.55, 41.68) |
| CIE-LCH | lch(46.07, 59.56, 135.59°) |
| OKLab | oklab(52.11% -0.1164 0.0944) |
| OKLCH | oklch(52.11% 0.15 141) |
| XYZ | xyz(8.6627, 15.3232, 3.7972) |
| Luminance | 0.1532 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.82
Green
#008000
ΔE00 3.12
Dark Grass Green
#388004
ΔE00 3.47
Darkish Green
#287C37
ΔE00 4.34
Forestgreen (CSS)
#228B22
ΔE00 4.99
Emerald Green
#028F1E
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D7D1F #6F1F7D
analogous
#5C7D1F #2D7D1F #1F7D40
triadic
#2D7D1F #1F2D7D #7D1F2D
tetradic
#2D7D1F #1F5C7D #6F1F7D #7D401F
square
#2D7D1F #1F5C7D #6F1F7D #7D401F
split-complementary
#2D7D1F #401F7D #7D1F5C
monochromatic
#0A1B07 #1B4C13 #2D7D1F #3FAE2B #5AD145
Accessibility & contrast
On white
5.17
#2D7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#2D7D1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2D7D1F
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D7D1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D7D1F | 1.00 | 5.17 | 4.06 | 5.17 |
| #FFFFFF | 5.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#20796B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #2d7d1f; /* rgb */ color: rgb(45, 125, 31); /* oklch */ color: oklch(52.1% 0.150 141.0);
Tailwind
colors: {
custom: {
50: '#71a361',
500: '#2d7d1f',
950: '#000000',
},
}SCSS
$custom: #2d7d1f; $custom-light: #71a361; $custom-dark: #000000;
JSON
{
"hex": "#2d7d1f",
"rgb": {
"r": 45,
"g": 125,
"b": 31
},
"hsl": {
"h": 111.064,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.52106,
"c": 0.14981,
"h": 141
},
"luminance": 0.15324
}Semantic roles & 50–950 ramp
primary
#2D7D1F
secondary
#A148B0
accent
#44E3CC
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79