#18872B#18872B

#18872B is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.5% C 0.161 H 145.1°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#18872B
RGBrgb(24, 135, 43)
HSLhsl(130, 70%, 31%)
HSVhsv(130, 82%, 53%)
CMYKcmyk(82.2%, 0%, 68.1%, 47.1%)
CIE-LABlab(49.12, -48.86, 39.72)
CIE-LCHlch(49.12, 62.97, 140.90°)
OKLaboklab(54.53% -0.1318 0.0919)
OKLCHoklch(54.53% 0.161 145.1)
XYZxyz(9.4760, 17.6954, 5.2012)
Luminance0.1770 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18872B #871874
analogous
#3C8718 #18872B #188762
triadic
#18872B #2B1887 #872B18
tetradic
#18872B #183C87 #871874 #876218
square
#18872B #183C87 #871874 #876218
split-complementary
#18872B #621887 #87183C
monochromatic
#061F0A #0F531A #18872B #21BB3C #3DDC58

Accessibility & contrast

On white

4.63
#18872B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#18872B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #18872B
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18872B#FFFFFF#000000##FFFFFF
##18872B1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897A1F
Deuteranopia (green-blind)
#7D7133
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #18872b;
/* rgb */ color: rgb(24, 135, 43);
/* oklch */ color: oklch(54.5% 0.161 145.1);
Tailwind
colors: {
  custom: {
    50: '#6bab69',
    500: '#18872b',
    950: '#000000',
  },
}
SCSS
$custom: #18872b;
$custom-light: #6bab69;
$custom-dark: #000000;
JSON
{
  "hex": "#18872b",
  "rgb": {
    "r": 24,
    "g": 135,
    "b": 43
  },
  "hsl": {
    "h": 130.27,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54533,
    "c": 0.16065,
    "h": 145.1
  },
  "luminance": 0.17697
}

Semantic roles & 50–950 ramp

primary
#18872B
secondary
#BB40A6
accent
#3BCEED
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #18872B

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

Preview Lab → · Contrast checker → · Palette generator →

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