#2D7F1F#2D7F1F
#2D7F1F is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.152 H 141.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2D7F1F |
|---|---|
| RGB | rgb(45, 127, 31) |
| HSL | hsl(111, 61%, 31%) |
| HSV | hsv(111, 76%, 50%) |
| CMYK | cmyk(64.6%, 0%, 75.6%, 50.2%) |
| CIE-LAB | lab(46.76, -43.30, 42.37) |
| CIE-LCH | lch(46.76, 60.58, 135.62°) |
| OKLab | oklab(52.67% -0.1184 0.0958) |
| OKLCH | oklch(52.67% 0.152 141) |
| XYZ | xyz(8.9184, 15.8347, 3.8825) |
| Luminance | 0.1584 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.71
Green
#008000
ΔE00 2.88
Dark Grass Green
#388004
ΔE00 3.19
Forestgreen (CSS)
#228B22
ΔE00 4.29
Darkish Green
#287C37
ΔE00 4.59
Emerald Green
#028F1E
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D7F1F #711F7F
analogous
#5D7F1F #2D7F1F #1F7F41
triadic
#2D7F1F #1F2D7F #7F1F2D
tetradic
#2D7F1F #1F5D7F #711F7F #7F411F
square
#2D7F1F #1F5D7F #711F7F #7F411F
split-complementary
#2D7F1F #411F7F #7F1F5D
monochromatic
#0A1D07 #1C4E13 #2D7F1F #3EB02B #5BD246
Accessibility & contrast
On white
5.04
#2D7F1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#2D7F1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2D7F1F
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D7F1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D7F1F | 1.00 | 5.04 | 4.17 | 5.04 |
| #FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#82730D
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#207B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2d7f1f; /* rgb */ color: rgb(45, 127, 31); /* oklch */ color: oklch(52.7% 0.152 141.0);
Tailwind
colors: {
custom: {
50: '#71a561',
500: '#2d7f1f',
950: '#000000',
},
}SCSS
$custom: #2d7f1f; $custom-light: #71a561; $custom-dark: #000000;
JSON
{
"hex": "#2d7f1f",
"rgb": {
"r": 45,
"g": 127,
"b": 31
},
"hsl": {
"h": 111.25,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.52671,
"c": 0.1523,
"h": 141
},
"luminance": 0.15836
}Semantic roles & 50–950 ramp
primary
#2D7F1F
secondary
#A348B2
accent
#44E4CD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A