#2A7F19#2A7F19
#2A7F19 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.157 H 140.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7F19 |
|---|---|
| RGB | rgb(42, 127, 25) |
| HSL | hsl(110, 67%, 30%) |
| HSV | hsv(110, 80%, 50%) |
| CMYK | cmyk(66.9%, 0%, 80.3%, 50.2%) |
| CIE-LAB | lab(46.63, -44.46, 44.41) |
| CIE-LCH | lch(46.63, 62.84, 135.04°) |
| OKLab | oklab(52.53% -0.1217 0.0992) |
| OKLCH | oklch(52.53% 0.157 140.8) |
| XYZ | xyz(8.7192, 15.7403, 3.4982) |
| Luminance | 0.1574 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 0.36
Green
#008000
ΔE00 2.32
Dark Grass Green
#388004
ΔE00 2.78
Forestgreen (CSS)
#228B22
ΔE00 4.29
Darkish Green
#287C37
ΔE00 5.17
Emerald Green
#028F1E
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7F19 #6E197F
analogous
#5D7F19 #2A7F19 #197F3B
triadic
#2A7F19 #192A7F #7F192A
tetradic
#2A7F19 #195D7F #6E197F #7F3B19
square
#2A7F19 #195D7F #6E197F #7F3B19
split-complementary
#2A7F19 #3B197F #7F195D
monochromatic
#081A05 #194C0F #2A7F19 #3BB223 #55D83A
Accessibility & contrast
On white
5.06
#2A7F19 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#2A7F19 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A7F19
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7F19 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A7F19 | 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)
#827300
Deuteranopia (green-blind)
#786C25
Tritanopia (blue-blind)
#1B7B6C
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #2a7f19; /* rgb */ color: rgb(42, 127, 25); /* oklch */ color: oklch(52.5% 0.157 140.8);
Tailwind
colors: {
custom: {
50: '#70a55e',
500: '#2a7f19',
950: '#000000',
},
}SCSS
$custom: #2a7f19; $custom-light: #70a55e; $custom-dark: #000000;
JSON
{
"hex": "#2a7f19",
"rgb": {
"r": 42,
"g": 127,
"b": 25
},
"hsl": {
"h": 110,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.52531,
"c": 0.15699,
"h": 140.8
},
"luminance": 0.15741
}Semantic roles & 50–950 ramp
primary
#2A7F19
secondary
#A041B3
accent
#3EEACD
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79