#18542A#18542A

#18542A is a dark, moderate green. Relative luminance 0.067; OKLCH L 39.6% C 0.093 H 149.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#18542A
RGBrgb(24, 84, 42)
HSLhsl(138, 56%, 21%)
HSVhsv(138, 71%, 33%)
CMYKcmyk(71.4%, 0%, 50%, 67.1%)
CIE-LABlab(31.12, -29.69, 19.04)
CIE-LCHlch(31.12, 35.27, 147.33°)
OKLaboklab(39.61% -0.0801 0.0466)
OKLCHoklch(39.61% 0.093 149.8)
XYZxyz(3.9646, 6.7016, 3.2746)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18542A #541842
analogous
#245418 #18542A #185448
triadic
#18542A #2A1854 #542A18
tetradic
#18542A #182454 #541842 #544818
square
#18542A #182454 #541842 #544818
split-complementary
#18542A #481854 #541824
monochromatic
#07180C #0A2412 #18542A #268442 #33B35A

Accessibility & contrast

On white

8.97
#18542A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#18542A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18542A
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18542A#FFFFFF#000000##FFFFFF
##18542A1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554C27
Deuteranopia (green-blind)
#4D472D
Tritanopia (blue-blind)
#02524A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #18542a;
/* rgb */ color: rgb(24, 84, 42);
/* oklch */ color: oklch(39.6% 0.093 149.8);
Tailwind
colors: {
  custom: {
    50: '#5d8564',
    500: '#18542a',
    950: '#000000',
  },
}
SCSS
$custom: #18542a;
$custom-light: #5d8564;
$custom-dark: #000000;
JSON
{
  "hex": "#18542a",
  "rgb": {
    "r": 24,
    "g": 84,
    "b": 42
  },
  "hsl": {
    "h": 138,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.39612,
    "c": 0.09267,
    "h": 149.8
  },
  "luminance": 0.06702
}

Semantic roles & 50–950 ramp

primary
#18542A
secondary
#8B3D73
accent
#49B2DF
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#050B05
muted
#797C7A

Preview Lab

Preview with #18542A

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

Preview Lab → · Contrast checker → · Palette generator →

#18542A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva