#18872F#18872F

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

Color values

HEX#18872F
RGBrgb(24, 135, 47)
HSLhsl(132, 70%, 31%)
HSVhsv(132, 82%, 53%)
CMYKcmyk(82.2%, 0%, 65.2%, 47.1%)
CIE-LABlab(49.16, -48.40, 37.94)
CIE-LCHlch(49.16, 61.50, 141.91°)
OKLaboklab(54.58% -0.1303 0.0886)
OKLCHoklch(54.58% 0.158 145.8)
XYZxyz(9.5530, 17.7262, 5.6068)
Luminance0.1773 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18872F #871870
analogous
#398718 #18872F #188766
triadic
#18872F #2F1887 #872F18
tetradic
#18872F #183987 #871870 #876618
square
#18872F #183987 #871870 #876618
split-complementary
#18872F #661887 #871839
monochromatic
#061F0B #0F531D #18872F #21BB41 #3DDC5E

Accessibility & contrast

On white

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

On black

4.55
#18872F on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##18872F#FFFFFF#000000##FFFFFF
##18872F1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897A25
Deuteranopia (green-blind)
#7D7237
Tritanopia (blue-blind)
#008474
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #18872f;
/* rgb */ color: rgb(24, 135, 47);
/* oklch */ color: oklch(54.6% 0.158 145.8);
Tailwind
colors: {
  custom: {
    50: '#6bab6b',
    500: '#18872f',
    950: '#000000',
  },
}
SCSS
$custom: #18872f;
$custom-light: #6bab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#18872f",
  "rgb": {
    "r": 24,
    "g": 135,
    "b": 47
  },
  "hsl": {
    "h": 132.432,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54576,
    "c": 0.15759,
    "h": 145.8
  },
  "luminance": 0.17727
}

Semantic roles & 50–950 ramp

primary
#18872F
secondary
#BB40A1
accent
#3BC8ED
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#081007
muted
#7A7F7A

Preview Lab

Preview with #18872F

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

Preview Lab → · Contrast checker → · Palette generator →

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