#18871F#18871F

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

Color values

HEX#18871F
RGBrgb(24, 135, 31)
HSLhsl(124, 70%, 31%)
HSVhsv(124, 82%, 53%)
CMYKcmyk(82.2%, 0%, 77%, 47.1%)
CIE-LABlab(49.03, -50.01, 44.51)
CIE-LCHlch(49.03, 66.95, 138.33°)
OKLaboklab(54.43% -0.1354 0.1004)
OKLCHoklch(54.43% 0.169 143.4)
XYZxyz(9.2874, 17.6199, 4.2076)
Luminance0.1762 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18871F #871880
analogous
#488718 #18871F #188756
triadic
#18871F #1F1887 #871F18
tetradic
#18871F #184887 #871880 #875618
square
#18871F #184887 #871880 #875618
split-complementary
#18871F #561887 #871848
monochromatic
#061F07 #0F5313 #18871F #21BB2B #3DDC47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #18871f;
/* rgb */ color: rgb(24, 135, 31);
/* oklch */ color: oklch(54.4% 0.169 143.4);
Tailwind
colors: {
  custom: {
    50: '#6bab62',
    500: '#18871f',
    950: '#000000',
  },
}
SCSS
$custom: #18871f;
$custom-light: #6bab62;
$custom-dark: #000000;
JSON
{
  "hex": "#18871f",
  "rgb": {
    "r": 24,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 123.784,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54426,
    "c": 0.16859,
    "h": 143.4
  },
  "luminance": 0.17621
}

Semantic roles & 50–950 ramp

primary
#18871F
secondary
#BB40B3
accent
#3BE1ED
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #18871F

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

Preview Lab → · Contrast checker → · Palette generator →

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