#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
RGBrgb(24, 135, 27)
HSLhsl(122, 70%, 31%)
HSVhsv(122, 82%, 53%)
CMYKcmyk(82.2%, 0%, 80%, 47.1%)
CIE-LABlab(49.01, -50.32, 45.89)
CIE-LCHlch(49.01, 68.10, 137.63°)
OKLaboklab(54.4% -0.1364 0.1027)
OKLCHoklch(54.4% 0.171 143)
XYZxyz(9.2379, 17.6001, 3.9470)
Luminance0.1760 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

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
##18871B1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.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

Preview Lab

Preview with #18871B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#18871B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva