#18871B#18871B
#18871B is a mid, vivid green. Relative luminance 0.176; OKLCH L 54.4% C 0.171 H 143.0°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #18871B |
|---|---|
| RGB | rgb(24, 135, 27) |
| HSL | hsl(122, 70%, 31%) |
| HSV | hsv(122, 82%, 53%) |
| CMYK | cmyk(82.2%, 0%, 80%, 47.1%) |
| CIE-LAB | lab(49.01, -50.32, 45.89) |
| CIE-LCH | lch(49.01, 68.10, 137.63°) |
| OKLab | oklab(54.4% -0.1364 0.1027) |
| OKLCH | oklch(54.4% 0.171 143) |
| XYZ | xyz(9.2379, 17.6001, 3.9470) |
| Luminance | 0.1760 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.61
Emerald Green
#028F1E
ΔE00 2.82
Green
#008000
ΔE00 2.99
Tree Green
#2A7E19
ΔE00 3.31
Dark Grass Green
#388004
ΔE00 4.29
Irish Green
#019529
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18871B #871884
analogous
#4C8718 #18871B #188752
triadic
#18871B #1B1887 #871B18
tetradic
#18871B #184C87 #871884 #875218
square
#18871B #184C87 #871884 #875218
split-complementary
#18871B #521887 #87184C
monochromatic
#061F06 #0F5311 #18871B #21BB25 #3DDC41
Accessibility & contrast
On white
4.65
#18871B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.52
#18871B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #18871B
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18871B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18871B | 1.00 | 4.65 | 4.52 | 4.65 |
| #FFFFFF | 4.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#7E7128
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #18871b; /* rgb */ color: rgb(24, 135, 27); /* oklch */ color: oklch(54.4% 0.171 143.0);
Tailwind
colors: {
custom: {
50: '#6cab60',
500: '#18871b',
950: '#000000',
},
}SCSS
$custom: #18871b; $custom-light: #6cab60; $custom-dark: #000000;
JSON
{
"hex": "#18871b",
"rgb": {
"r": 24,
"g": 135,
"b": 27
},
"hsl": {
"h": 121.622,
"s": 69.811,
"l": 31.176
},
"oklch": {
"l": 0.54398,
"c": 0.17078,
"h": 143
},
"luminance": 0.17601
}Semantic roles & 50–950 ramp
primary
#18871B
secondary
#BB40B7
accent
#3BE8ED
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79