#18872C#18872C

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

Color values

HEX#18872C
RGBrgb(24, 135, 44)
HSLhsl(131, 70%, 31%)
HSVhsv(131, 82%, 53%)
CMYKcmyk(82.2%, 0%, 67.4%, 47.1%)
CIE-LABlab(49.13, -48.75, 39.28)
CIE-LCHlch(49.13, 62.61, 141.14°)
OKLaboklab(54.54% -0.1314 0.0911)
OKLCHoklch(54.54% 0.16 145.3)
XYZxyz(9.4946, 17.7028, 5.2990)
Luminance0.1770 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18872C #871873
analogous
#3B8718 #18872C #188763
triadic
#18872C #2C1887 #872C18
tetradic
#18872C #183B87 #871873 #876318
square
#18872C #183B87 #871873 #876318
split-complementary
#18872C #631887 #87183B
monochromatic
#061F0A #0F531B #18872C #21BB3D #3DDC5A

Accessibility & contrast

On white

4.62
#18872C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #18872C
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18872C#FFFFFF#000000##FFFFFF
##18872C1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18872c;
/* rgb */ color: rgb(24, 135, 44);
/* oklch */ color: oklch(54.5% 0.160 145.3);
Tailwind
colors: {
  custom: {
    50: '#6bab69',
    500: '#18872c',
    950: '#000000',
  },
}
SCSS
$custom: #18872c;
$custom-light: #6bab69;
$custom-dark: #000000;
JSON
{
  "hex": "#18872c",
  "rgb": {
    "r": 24,
    "g": 135,
    "b": 44
  },
  "hsl": {
    "h": 130.811,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54543,
    "c": 0.1599,
    "h": 145.3
  },
  "luminance": 0.17704
}

Semantic roles & 50–950 ramp

primary
#18872C
secondary
#BB40A5
accent
#3BCDED
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #18872C

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

Preview Lab → · Contrast checker → · Palette generator →

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