#2D7E1F#2D7E1F
#2D7E1F is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.151 H 141.0°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2D7E1F |
|---|---|
| RGB | rgb(45, 126, 31) |
| HSL | hsl(111, 61%, 31%) |
| HSV | hsv(111, 75%, 49%) |
| CMYK | cmyk(64.3%, 0%, 75.4%, 50.6%) |
| CIE-LAB | lab(46.42, -42.92, 42.03) |
| CIE-LCH | lch(46.42, 60.07, 135.60°) |
| OKLab | oklab(52.39% -0.1174 0.0951) |
| OKLCH | oklch(52.39% 0.151 141) |
| XYZ | xyz(8.7899, 15.5777, 3.8396) |
| Luminance | 0.1558 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.68
Green
#008000
ΔE00 2.98
Dark Grass Green
#388004
ΔE00 3.32
Darkish Green
#287C37
ΔE00 4.45
Forestgreen (CSS)
#228B22
ΔE00 4.64
Emerald Green
#028F1E
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D7E1F #701F7E
analogous
#5C7E1F #2D7E1F #1F7E40
triadic
#2D7E1F #1F2D7E #7E1F2D
tetradic
#2D7E1F #1F5C7E #701F7E #7E401F
square
#2D7E1F #1F5C7E #701F7E #7E401F
split-complementary
#2D7E1F #401F7E #7E1F5C
monochromatic
#0A1C07 #1B4D13 #2D7E1F #3FAF2B #5AD146
Accessibility & contrast
On white
5.10
#2D7E1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#2D7E1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2D7E1F
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D7E1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D7E1F | 1.00 | 5.10 | 4.12 | 5.10 |
| #FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#207A6C
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #2d7e1f; /* rgb */ color: rgb(45, 126, 31); /* oklch */ color: oklch(52.4% 0.151 141.0);
Tailwind
colors: {
custom: {
50: '#71a461',
500: '#2d7e1f',
950: '#000000',
},
}SCSS
$custom: #2d7e1f; $custom-light: #71a461; $custom-dark: #000000;
JSON
{
"hex": "#2d7e1f",
"rgb": {
"r": 45,
"g": 126,
"b": 31
},
"hsl": {
"h": 111.158,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.52389,
"c": 0.15106,
"h": 141
},
"luminance": 0.15579
}Semantic roles & 50–950 ramp
primary
#2D7E1F
secondary
#A248B1
accent
#44E4CC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A