#18540F#18540F

#18540F is a dark, moderate green. Relative luminance 0.066; OKLCH L 39.3% C 0.117 H 141.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#18540F
RGBrgb(24, 84, 15)
HSLhsl(112, 70%, 19%)
HSVhsv(112, 82%, 33%)
CMYKcmyk(71.4%, 0%, 82.1%, 67.1%)
CIE-LABlab(30.80, -33.32, 32.45)
CIE-LCHlch(30.80, 46.51, 135.75°)
OKLaboklab(39.25% -0.091 0.0729)
OKLCHoklch(39.25% 0.117 141.3)
XYZxyz(3.6330, 6.5690, 1.5283)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18540F #4B0F54
analogous
#3B540F #18540F #0F5429
triadic
#18540F #0F1854 #540F18
tetradic
#18540F #0F3B54 #4B0F54 #54290F
square
#18540F #0F3B54 #4B0F54 #54290F
split-complementary
#18540F #290F54 #540F3B
monochromatic
#071A05 #092006 #18540F #278818 #36BC22

Accessibility & contrast

On white

9.08
#18540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#18540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18540F
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18540F#FFFFFF#000000##FFFFFF
##18540F1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B02
Deuteranopia (green-blind)
#4F4717
Tritanopia (blue-blind)
#0C5147
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #18540f;
/* rgb */ color: rgb(24, 84, 15);
/* oklch */ color: oklch(39.3% 0.117 141.3);
Tailwind
colors: {
  custom: {
    50: '#5f8553',
    500: '#18540f',
    950: '#000000',
  },
}
SCSS
$custom: #18540f;
$custom-light: #5f8553;
$custom-dark: #000000;
JSON
{
  "hex": "#18540f",
  "rgb": {
    "r": 24,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 112.174,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39253,
    "c": 0.11661,
    "h": 141.3
  },
  "luminance": 0.06569
}

Semantic roles & 50–950 ramp

primary
#18540F
secondary
#82318E
accent
#3BEDD5
background
#F5F8F4
surface
#EAEFE7
border
#C6CAC3
text
#050B03
muted
#797C78

Preview Lab

Preview with #18540F

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

Preview Lab → · Contrast checker → · Palette generator →

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