#18872E#18872E

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

Color values

HEX#18872E
RGBrgb(24, 135, 46)
HSLhsl(132, 70%, 31%)
HSVhsv(132, 82%, 53%)
CMYKcmyk(82.2%, 0%, 65.9%, 47.1%)
CIE-LABlab(49.15, -48.52, 38.39)
CIE-LCHlch(49.15, 61.87, 141.65°)
OKLaboklab(54.57% -0.1307 0.0894)
OKLCHoklch(54.57% 0.158 145.6)
XYZxyz(9.5331, 17.7182, 5.5018)
Luminance0.1772 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18872E #871871
analogous
#398718 #18872E #188765
triadic
#18872E #2E1887 #872E18
tetradic
#18872E #183987 #871871 #876518
square
#18872E #183987 #871871 #876518
split-complementary
#18872E #651887 #871839
monochromatic
#061F0B #0F531C #18872E #21BB40 #3DDC5D

Accessibility & contrast

On white

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

On black

4.54
#18872E on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##18872E#FFFFFF#000000##FFFFFF
##18872E1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897A23
Deuteranopia (green-blind)
#7D7236
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #18872e;
/* rgb */ color: rgb(24, 135, 46);
/* oklch */ color: oklch(54.6% 0.158 145.6);
Tailwind
colors: {
  custom: {
    50: '#6bab6b',
    500: '#18872e',
    950: '#000000',
  },
}
SCSS
$custom: #18872e;
$custom-light: #6bab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#18872e",
  "rgb": {
    "r": 24,
    "g": 135,
    "b": 46
  },
  "hsl": {
    "h": 131.892,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54565,
    "c": 0.15838,
    "h": 145.6
  },
  "luminance": 0.17719
}

Semantic roles & 50–950 ramp

primary
#18872E
secondary
#BB40A2
accent
#3BC9ED
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#081007
muted
#7A7F7A

Preview Lab

Preview with #18872E

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

Preview Lab → · Contrast checker → · Palette generator →

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