#2A7F1F#2A7F1F
#2A7F1F is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.154 H 141.5°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7F1F |
|---|---|
| RGB | rgb(42, 127, 31) |
| HSL | hsl(113, 61%, 31%) |
| HSV | hsv(113, 76%, 50%) |
| CMYK | cmyk(66.9%, 0%, 75.6%, 50.2%) |
| CIE-LAB | lab(46.67, -44.01, 42.26) |
| CIE-LCH | lch(46.67, 61.01, 136.16°) |
| OKLab | oklab(52.58% -0.1201 0.0956) |
| OKLCH | oklch(52.58% 0.154 141.5) |
| XYZ | xyz(8.7911, 15.7690, 3.8765) |
| Luminance | 0.1577 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.75
Green
#008000
ΔE00 2.75
Dark Grass Green
#388004
ΔE00 3.41
Forestgreen (CSS)
#228B22
ΔE00 4.26
Darkish Green
#287C37
ΔE00 4.47
Emerald Green
#028F1E
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7F1F #741F7F
analogous
#5A7F1F #2A7F1F #1F7F44
triadic
#2A7F1F #1F2A7F #7F1F2A
tetradic
#2A7F1F #1F5A7F #741F7F #7F441F
square
#2A7F1F #1F5A7F #741F7F #7F441F
split-complementary
#2A7F1F #441F7F #7F1F5A
monochromatic
#091D07 #1A4E13 #2A7F1F #3AB02B #56D246
Accessibility & contrast
On white
5.06
#2A7F1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#2A7F1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7F1F
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7F1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7F1F | 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)
#82730D
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#1A7B6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #2a7f1f; /* rgb */ color: rgb(42, 127, 31); /* oklch */ color: oklch(52.6% 0.154 141.5);
Tailwind
colors: {
custom: {
50: '#70a561',
500: '#2a7f1f',
950: '#000000',
},
}SCSS
$custom: #2a7f1f; $custom-light: #70a561; $custom-dark: #000000;
JSON
{
"hex": "#2a7f1f",
"rgb": {
"r": 42,
"g": 127,
"b": 31
},
"hsl": {
"h": 113.125,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.52575,
"c": 0.15352,
"h": 141.5
},
"luminance": 0.1577
}Semantic roles & 50–950 ramp
primary
#2A7F1F
secondary
#A648B2
accent
#44E4D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A