#2A7F1E#2A7F1E
#2A7F1E is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.154 H 141.4°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7F1E |
|---|---|
| RGB | rgb(42, 127, 30) |
| HSL | hsl(113, 62%, 31%) |
| HSV | hsv(113, 76%, 50%) |
| CMYK | cmyk(66.9%, 0%, 76.4%, 50.2%) |
| CIE-LAB | lab(46.66, -44.09, 42.63) |
| CIE-LCH | lch(46.66, 61.33, 135.96°) |
| OKLab | oklab(52.57% -0.1204 0.0962) |
| OKLCH | oklch(52.57% 0.154 141.4) |
| XYZ | xyz(8.7781, 15.7638, 3.8082) |
| Luminance | 0.1577 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.64
Green
#008000
ΔE00 2.67
Dark Grass Green
#388004
ΔE00 3.29
Forestgreen (CSS)
#228B22
ΔE00 4.26
Darkish Green
#287C37
ΔE00 4.60
Emerald Green
#028F1E
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7F1E #731E7F
analogous
#5A7F1E #2A7F1E #1E7F42
triadic
#2A7F1E #1E2A7F #7F1E2A
tetradic
#2A7F1E #1E5A7F #731E7F #7F421E
square
#2A7F1E #1E5A7F #731E7F #7F421E
split-complementary
#2A7F1E #421E7F #7F1E5A
monochromatic
#091C07 #1A4D12 #2A7F1E #3AB12A #56D344
Accessibility & contrast
On white
5.06
#2A7F1E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#2A7F1E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7F1E
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7F1E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7F1E | 1.00 | 5.06 | 4.15 | 5.06 |
| #FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#82730B
Deuteranopia (green-blind)
#786C28
Tritanopia (blue-blind)
#1A7B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2a7f1e; /* rgb */ color: rgb(42, 127, 30); /* oklch */ color: oklch(52.6% 0.154 141.4);
Tailwind
colors: {
custom: {
50: '#70a561',
500: '#2a7f1e',
950: '#000000',
},
}SCSS
$custom: #2a7f1e; $custom-light: #70a561; $custom-dark: #000000;
JSON
{
"hex": "#2a7f1e",
"rgb": {
"r": 42,
"g": 127,
"b": 30
},
"hsl": {
"h": 112.577,
"s": 61.783,
"l": 30.784
},
"oklch": {
"l": 0.52567,
"c": 0.15414,
"h": 141.4
},
"luminance": 0.15765
}Semantic roles & 50–950 ramp
primary
#2A7F1E
secondary
#A547B2
accent
#43E5D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79