#2A7D1F#2A7D1F
#2A7D1F is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.151 H 141.4°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7D1F |
|---|---|
| RGB | rgb(42, 125, 31) |
| HSL | hsl(113, 60%, 31%) |
| HSV | hsv(113, 75%, 49%) |
| CMYK | cmyk(66.4%, 0%, 75.2%, 51%) |
| CIE-LAB | lab(45.98, -43.27, 41.56) |
| CIE-LCH | lch(45.98, 60.00, 136.15°) |
| OKLab | oklab(52.01% -0.1181 0.0941) |
| OKLCH | oklch(52.01% 0.151 141.4) |
| XYZ | xyz(8.5353, 15.2576, 3.7913) |
| Luminance | 0.1526 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.88
Green
#008000
ΔE00 3.00
Dark Grass Green
#388004
ΔE00 3.68
Darkish Green
#287C37
ΔE00 4.21
Forestgreen (CSS)
#228B22
ΔE00 4.97
Emerald Green
#028F1E
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7D1F #721F7D
analogous
#597D1F #2A7D1F #1F7D43
triadic
#2A7D1F #1F2A7D #7D1F2A
tetradic
#2A7D1F #1F597D #721F7D #7D431F
square
#2A7D1F #1F597D #721F7D #7D431F
split-complementary
#2A7D1F #431F7D #7D1F59
monochromatic
#091B07 #1A4C13 #2A7D1F #3AAE2B #56D145
Accessibility & contrast
On white
5.18
#2A7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.05
#2A7D1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7D1F
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7D1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7D1F | 1.00 | 5.18 | 4.05 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#1B796B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #2a7d1f; /* rgb */ color: rgb(42, 125, 31); /* oklch */ color: oklch(52.0% 0.151 141.4);
Tailwind
colors: {
custom: {
50: '#6fa361',
500: '#2a7d1f',
950: '#000000',
},
}SCSS
$custom: #2a7d1f; $custom-light: #6fa361; $custom-dark: #000000;
JSON
{
"hex": "#2a7d1f",
"rgb": {
"r": 42,
"g": 125,
"b": 31
},
"hsl": {
"h": 112.979,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.52007,
"c": 0.15105,
"h": 141.4
},
"luminance": 0.15258
}Semantic roles & 50–950 ramp
primary
#2A7D1F
secondary
#A448B0
accent
#44E3D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79