#18871C#18871C

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

Color values

HEX#18871C
RGBrgb(24, 135, 28)
HSLhsl(122, 70%, 31%)
HSVhsv(122, 82%, 53%)
CMYKcmyk(82.2%, 0%, 79.3%, 47.1%)
CIE-LABlab(49.01, -50.24, 45.56)
CIE-LCHlch(49.01, 67.82, 137.80°)
OKLaboklab(54.4% -0.1362 0.1022)
OKLCHoklch(54.4% 0.17 143.1)
XYZxyz(9.2497, 17.6049, 4.0090)
Luminance0.1761 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18871C #871883
analogous
#4B8718 #18871C #188753
triadic
#18871C #1C1887 #871C18
tetradic
#18871C #184B87 #871883 #875318
square
#18871C #184B87 #871883 #875318
split-complementary
#18871C #531887 #87184B
monochromatic
#061F06 #0F5311 #18871C #21BB27 #3DDC43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##18871C#FFFFFF#000000##FFFFFF
##18871C1.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)
#8A7902
Deuteranopia (green-blind)
#7E7128
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #18871c;
/* rgb */ color: rgb(24, 135, 28);
/* oklch */ color: oklch(54.4% 0.170 143.1);
Tailwind
colors: {
  custom: {
    50: '#6cab61',
    500: '#18871c',
    950: '#000000',
  },
}
SCSS
$custom: #18871c;
$custom-light: #6cab61;
$custom-dark: #000000;
JSON
{
  "hex": "#18871c",
  "rgb": {
    "r": 24,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 122.162,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54404,
    "c": 0.17026,
    "h": 143.1
  },
  "luminance": 0.17606
}

Semantic roles & 50–950 ramp

primary
#18871C
secondary
#BB40B6
accent
#3BE6ED
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #18871C

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

Preview Lab → · Contrast checker → · Palette generator →

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