#540F17#540F17

#540F17 is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.6% C 0.100 H 19.8°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#540F17
RGBrgb(84, 15, 23)
HSLhsl(353, 70%, 19%)
HSVhsv(353, 82%, 33%)
CMYKcmyk(0%, 82.1%, 72.6%, 67.1%)
CIE-LABlab(16.94, 31.69, 14.32)
CIE-LCHlch(16.94, 34.78, 24.31°)
OKLaboklab(29.63% 0.0937 0.0338)
OKLCHoklch(29.63% 0.1 19.8)
XYZxyz(3.9821, 2.2889, 1.0426)
Luminance0.0229 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F17 #0F544C
analogous
#540F3A #540F17 #54290F
triadic
#540F17 #17540F #0F1754
tetradic
#540F17 #3A540F #0F544C #290F54
square
#540F17 #3A540F #0F544C #290F54
split-complementary
#540F17 #0F5429 #0F3A54
monochromatic
#1A0507 #200609 #540F17 #881825 #BC2233

Accessibility & contrast

On white

14.41
#540F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#540F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F17
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F17#FFFFFF#000000##FFFFFF
##540F171.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232017
Deuteranopia (green-blind)
#342F15
Tritanopia (blue-blind)
#5D0013
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540f17;
/* rgb */ color: rgb(84, 15, 23);
/* oklch */ color: oklch(29.6% 0.100 19.8);
Tailwind
colors: {
  custom: {
    50: '#8a5453',
    500: '#540f17',
    950: '#000000',
  },
}
SCSS
$custom: #540f17;
$custom-light: #8a5453;
$custom-dark: #000000;
JSON
{
  "hex": "#540f17",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 23
  },
  "hsl": {
    "h": 353.043,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29627,
    "c": 0.09963,
    "h": 19.8
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#540F17
secondary
#318E83
accent
#EDD83B
background
#F9F5F4
surface
#F1E9E7
border
#CBC5C3
text
#0D0302
muted
#7E7878

Preview Lab

Preview with #540F17

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

Preview Lab → · Contrast checker → · Palette generator →

#540F17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva