#18871E#18871E

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

Color values

HEX#18871E
RGBrgb(24, 135, 30)
HSLhsl(123, 70%, 31%)
HSVhsv(123, 82%, 53%)
CMYKcmyk(82.2%, 0%, 77.8%, 47.1%)
CIE-LABlab(49.03, -50.09, 44.86)
CIE-LCHlch(49.03, 67.25, 138.15°)
OKLaboklab(54.42% -0.1357 0.101)
OKLCHoklch(54.42% 0.169 143.3)
XYZxyz(9.2744, 17.6147, 4.1392)
Luminance0.1762 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18871E #871881
analogous
#498718 #18871E #188755
triadic
#18871E #1E1887 #871E18
tetradic
#18871E #184987 #871881 #875518
square
#18871E #184987 #871881 #875518
split-complementary
#18871E #551887 #871849
monochromatic
#061F07 #0F5312 #18871E #21BB2A #3DDC46

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##18871E#FFFFFF#000000##FFFFFF
##18871E1.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)
#8A7906
Deuteranopia (green-blind)
#7E712A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #18871e;
/* rgb */ color: rgb(24, 135, 30);
/* oklch */ color: oklch(54.4% 0.169 143.3);
Tailwind
colors: {
  custom: {
    50: '#6cab62',
    500: '#18871e',
    950: '#000000',
  },
}
SCSS
$custom: #18871e;
$custom-light: #6cab62;
$custom-dark: #000000;
JSON
{
  "hex": "#18871e",
  "rgb": {
    "r": 24,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 123.243,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54418,
    "c": 0.16917,
    "h": 143.3
  },
  "luminance": 0.17616
}

Semantic roles & 50–950 ramp

primary
#18871E
secondary
#BB40B4
accent
#3BE3ED
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #18871E

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

Preview Lab → · Contrast checker → · Palette generator →

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