#18871E#18871E
#18871E is a mid, vivid green. Relative luminance 0.176; OKLCH L 54.4% C 0.169 H 143.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).
Color values
| HEX | #18871E |
|---|---|
| RGB | rgb(24, 135, 30) |
| HSL | hsl(123, 70%, 31%) |
| HSV | hsv(123, 82%, 53%) |
| CMYK | cmyk(82.2%, 0%, 77.8%, 47.1%) |
| CIE-LAB | lab(49.03, -50.09, 44.86) |
| CIE-LCH | lch(49.03, 67.25, 138.15°) |
| OKLab | oklab(54.42% -0.1357 0.101) |
| OKLCH | oklch(54.42% 0.169 143.3) |
| XYZ | xyz(9.2744, 17.6147, 4.1392) |
| Luminance | 0.1762 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.58
Emerald Green
#028F1E
ΔE00 2.83
Green
#008000
ΔE00 3.16
Tree Green
#2A7E19
ΔE00 3.34
Dark Grass Green
#388004
ΔE00 4.49
Irish Green
#019529
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18871E #871881
analogous
#498718 #18871E #188755
triadic
#18871E #1E1887 #871E18
tetradic
#18871E #184987 #871881 #875518
square
#18871E #184987 #871881 #875518
split-complementary
#18871E #551887 #871849
monochromatic
#061F07 #0F5312 #18871E #21BB2A #3DDC46
Accessibility & contrast
On white
4.64
#18871E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.52
#18871E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #18871E
4.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18871E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18871E | 1.00 | 4.64 | 4.52 | 4.64 |
| #FFFFFF | 4.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7906
Deuteranopia (green-blind)
#7E712A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #18871e; /* rgb */ color: rgb(24, 135, 30); /* oklch */ color: oklch(54.4% 0.169 143.3);
Tailwind
colors: {
custom: {
50: '#6cab62',
500: '#18871e',
950: '#000000',
},
}SCSS
$custom: #18871e; $custom-light: #6cab62; $custom-dark: #000000;
JSON
{
"hex": "#18871e",
"rgb": {
"r": 24,
"g": 135,
"b": 30
},
"hsl": {
"h": 123.243,
"s": 69.811,
"l": 31.176
},
"oklch": {
"l": 0.54418,
"c": 0.16917,
"h": 143.3
},
"luminance": 0.17616
}Semantic roles & 50–950 ramp
primary
#18871E
secondary
#BB40B4
accent
#3BE3ED
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A