#2A8F1F#2A8F1F
#2A8F1F is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.1% C 0.173 H 141.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #2A8F1F |
|---|---|
| RGB | rgb(42, 143, 31) |
| HSL | hsl(114, 64%, 34%) |
| HSV | hsv(114, 78%, 56%) |
| CMYK | cmyk(70.6%, 0%, 78.3%, 43.9%) |
| CIE-LAB | lab(52.10, -49.70, 47.66) |
| CIE-LCH | lch(52.10, 68.86, 136.20°) |
| OKLab | oklab(57.08% -0.1355 0.1069) |
| OKLCH | oklch(57.08% 0.173 141.7) |
| XYZ | xyz(11.0240, 20.2349, 4.6208) |
| Luminance | 0.2024 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Emerald Green
#028F1E
ΔE00 1.73
Forestgreen (CSS)
#228B22
ΔE00 1.75
True Green
#089404
ΔE00 2.58
Irish Green
#019529
ΔE00 2.82
Kelley Green
#009337
ΔE00 4.06
Grass Green
#3F9B0B
ΔE00 5.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A8F1F #841F8F
analogous
#628F1F #2A8F1F #1F8F4C
triadic
#2A8F1F #1F2A8F #8F1F2A
tetradic
#2A8F1F #1F628F #841F8F #8F4C1F
square
#2A8F1F #1F628F #841F8F #8F4C1F
split-complementary
#2A8F1F #4C1F8F #8F1F62
monochromatic
#0C2A09 #1B5D14 #2A8F1F #39C12A #5DD94F
Accessibility & contrast
On white
4.16
#2A8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.05
#2A8F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #2A8F1F
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A8F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##2A8F1F | 1.00 | 4.16 | 5.05 | 5.05 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938104
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#118A7A
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #2a8f1f; /* rgb */ color: rgb(42, 143, 31); /* oklch */ color: oklch(57.1% 0.173 141.7);
Tailwind
colors: {
custom: {
50: '#73b164',
500: '#2a8f1f',
950: '#000000',
},
}SCSS
$custom: #2a8f1f; $custom-light: #73b164; $custom-dark: #000000;
JSON
{
"hex": "#2a8f1f",
"rgb": {
"r": 42,
"g": 143,
"b": 31
},
"hsl": {
"h": 114.107,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.57077,
"c": 0.17257,
"h": 141.7
},
"luminance": 0.20236
}Semantic roles & 50–950 ramp
primary
#2A8F1F
secondary
#B14EBC
accent
#40E7D7
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A