#18871A#18871A

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

Color values

HEX#18871A
RGBrgb(24, 135, 26)
HSLhsl(121, 70%, 31%)
HSVhsv(121, 82%, 53%)
CMYKcmyk(82.2%, 0%, 80.7%, 47.1%)
CIE-LABlab(49.00, -50.39, 46.22)
CIE-LCHlch(49.00, 68.37, 137.47°)
OKLaboklab(54.39% -0.1367 0.1033)
OKLCHoklch(54.39% 0.171 142.9)
XYZxyz(9.2265, 17.5956, 3.8871)
Luminance0.1760 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18871A #871885
analogous
#4D8718 #18871A #188751
triadic
#18871A #1A1887 #871A18
tetradic
#18871A #184D87 #871885 #875118
square
#18871A #184D87 #871885 #875118
split-complementary
#18871A #511887 #87184D
monochromatic
#061F06 #0F5310 #18871A #21BB24 #3DDC40

Accessibility & contrast

On white

4.65
#18871A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #18871A
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18871A#FFFFFF#000000##FFFFFF
##18871A1.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)
#7E7127
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #18871a;
/* rgb */ color: rgb(24, 135, 26);
/* oklch */ color: oklch(54.4% 0.171 142.9);
Tailwind
colors: {
  custom: {
    50: '#6cab60',
    500: '#18871a',
    950: '#000000',
  },
}
SCSS
$custom: #18871a;
$custom-light: #6cab60;
$custom-dark: #000000;
JSON
{
  "hex": "#18871a",
  "rgb": {
    "r": 24,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 121.081,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54391,
    "c": 0.1713,
    "h": 142.9
  },
  "luminance": 0.17597
}

Semantic roles & 50–950 ramp

primary
#18871A
secondary
#BB40B8
accent
#3BE9ED
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #18871A

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

Preview Lab → · Contrast checker → · Palette generator →

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