#18881F#18881F

#18881F is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.7% C 0.170 H 143.4°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#18881F
RGBrgb(24, 136, 31)
HSLhsl(124, 70%, 31%)
HSVhsv(124, 82%, 53%)
CMYKcmyk(82.4%, 0%, 77.2%, 46.7%)
CIE-LABlab(49.38, -50.34, 44.85)
CIE-LCHlch(49.38, 67.42, 138.30°)
OKLaboklab(54.71% -0.1363 0.1011)
OKLCHoklch(54.71% 0.17 143.4)
XYZxyz(9.4275, 17.9003, 4.2543)
Luminance0.1790 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18881F #881881
analogous
#498818 #18881F #188857
triadic
#18881F #1F1888 #881F18
tetradic
#18881F #184988 #881881 #885718
square
#18881F #184988 #881881 #885718
split-complementary
#18881F #571888 #881849
monochromatic
#062007 #0F5413 #18881F #21BC2B #3EDD47

Accessibility & contrast

On white

4.58
#18881F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#18881F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #18881F
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18881F#FFFFFF#000000##000000
##18881F1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A08
Deuteranopia (green-blind)
#7F722B
Tritanopia (blue-blind)
#008474
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #18881f;
/* rgb */ color: rgb(24, 136, 31);
/* oklch */ color: oklch(54.7% 0.170 143.4);
Tailwind
colors: {
  custom: {
    50: '#6cac62',
    500: '#18881f',
    950: '#000000',
  },
}
SCSS
$custom: #18881f;
$custom-light: #6cac62;
$custom-dark: #000000;
JSON
{
  "hex": "#18881f",
  "rgb": {
    "r": 24,
    "g": 136,
    "b": 31
  },
  "hsl": {
    "h": 123.75,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54711,
    "c": 0.16973,
    "h": 143.4
  },
  "luminance": 0.17901
}

Semantic roles & 50–950 ramp

primary
#18881F
secondary
#BC40B4
accent
#3BE2ED
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #18881F

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

Preview Lab → · Contrast checker → · Palette generator →

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