#18871D#18871D

#18871D is a mid, vivid green. Relative luminance 0.176; OKLCH L 54.4% C 0.170 H 143.2°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#18871D
RGBrgb(24, 135, 29)
HSLhsl(123, 70%, 31%)
HSVhsv(123, 82%, 53%)
CMYKcmyk(82.2%, 0%, 78.5%, 47.1%)
CIE-LABlab(49.02, -50.17, 45.21)
CIE-LCHlch(49.02, 67.54, 137.97°)
OKLaboklab(54.41% -0.1359 0.1016)
OKLCHoklch(54.41% 0.17 143.2)
XYZxyz(9.2618, 17.6097, 4.0730)
Luminance0.1761 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18871D #871882
analogous
#4A8718 #18871D #188754
triadic
#18871D #1D1887 #871D18
tetradic
#18871D #184A87 #871882 #875418
square
#18871D #184A87 #871882 #875418
split-complementary
#18871D #541887 #87184A
monochromatic
#061F07 #0F5312 #18871D #21BB28 #3DDC44

Accessibility & contrast

On white

4.64
#18871D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#18871D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #18871D
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18871D#FFFFFF#000000##FFFFFF
##18871D1.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7904
Deuteranopia (green-blind)
#7E7129
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #18871d;
/* rgb */ color: rgb(24, 135, 29);
/* oklch */ color: oklch(54.4% 0.170 143.2);
Tailwind
colors: {
  custom: {
    50: '#6cab61',
    500: '#18871d',
    950: '#000000',
  },
}
SCSS
$custom: #18871d;
$custom-light: #6cab61;
$custom-dark: #000000;
JSON
{
  "hex": "#18871d",
  "rgb": {
    "r": 24,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 122.703,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54411,
    "c": 0.16972,
    "h": 143.2
  },
  "luminance": 0.17611
}

Semantic roles & 50–950 ramp

primary
#18871D
secondary
#BB40B5
accent
#3BE5ED
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #18871D

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

Preview Lab → · Contrast checker → · Palette generator →

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