#2A8F1C#2A8F1C
#2A8F1C is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.1% C 0.174 H 141.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2A8F1C |
|---|---|
| RGB | rgb(42, 143, 28) |
| HSL | hsl(113, 67%, 34%) |
| HSV | hsv(113, 80%, 56%) |
| CMYK | cmyk(70.6%, 0%, 80.4%, 43.9%) |
| CIE-LAB | lab(52.08, -49.91, 48.64) |
| CIE-LCH | lch(52.08, 69.69, 135.74°) |
| OKLab | oklab(57.06% -0.1362 0.1085) |
| OKLCH | oklch(57.06% 0.174 141.5) |
| XYZ | xyz(10.9863, 20.2198, 4.4222) |
| Luminance | 0.2022 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Emerald Green
#028F1E
ΔE00 1.86
Forestgreen (CSS)
#228B22
ΔE00 1.92
True Green
#089404
ΔE00 2.41
Irish Green
#019529
ΔE00 2.99
Kelley Green
#009337
ΔE00 4.33
Grass Green
#3F9B0B
ΔE00 5.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A8F1C #811C8F
analogous
#638F1C #2A8F1C #1C8F47
triadic
#2A8F1C #1C2A8F #8F1C2A
tetradic
#2A8F1C #1C638F #811C8F #8F471C
square
#2A8F1C #1C638F #811C8F #8F471C
split-complementary
#2A8F1C #471C8F #8F1C63
monochromatic
#0C2908 #1B5C12 #2A8F1C #39C226 #5CDC4A
Accessibility & contrast
On white
4.16
#2A8F1C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#2A8F1C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #2A8F1C
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A8F1C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##2A8F1C | 1.00 | 4.16 | 5.04 | 5.04 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#87792A
Tritanopia (blue-blind)
#128A7A
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #2a8f1c; /* rgb */ color: rgb(42, 143, 28); /* oklch */ color: oklch(57.1% 0.174 141.5);
Tailwind
colors: {
custom: {
50: '#74b162',
500: '#2a8f1c',
950: '#000000',
},
}SCSS
$custom: #2a8f1c; $custom-light: #74b162; $custom-dark: #000000;
JSON
{
"hex": "#2a8f1c",
"rgb": {
"r": 42,
"g": 143,
"b": 28
},
"hsl": {
"h": 112.696,
"s": 67.251,
"l": 33.529
},
"oklch": {
"l": 0.57057,
"c": 0.17414,
"h": 141.5
},
"luminance": 0.20221
}Semantic roles & 50–950 ramp
primary
#2A8F1C
secondary
#AF49BE
accent
#3EEAD5
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A