#540D21#540D21

#540D21 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.7% C 0.102 H 10.1°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#540D21
RGBrgb(84, 13, 33)
HSLhsl(343, 73%, 19%)
HSVhsv(343, 85%, 33%)
CMYKcmyk(0%, 84.5%, 60.7%, 67.1%)
CIE-LABlab(16.91, 33.15, 7.10)
CIE-LCHlch(16.91, 33.91, 12.09°)
OKLaboklab(29.68% 0.1006 0.0179)
OKLCHoklch(29.68% 0.102 10.1)
XYZxyz(4.0750, 2.2831, 1.6646)
Luminance0.0228 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D21 #0D5440
analogous
#540D45 #540D21 #541D0D
triadic
#540D21 #21540D #0D2154
tetradic
#540D21 #45540D #0D5440 #1D0D54
square
#540D21 #45540D #0D5440 #1D0D54
split-complementary
#540D21 #0D541D #0D4554
monochromatic
#1A040A #1F050C #540D21 #891536 #BE1D4B

Accessibility & contrast

On white

14.42
#540D21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540D21
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D21#FFFFFF#000000##FFFFFF
##540D211.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202121
Deuteranopia (green-blind)
#332F1F
Tritanopia (blue-blind)
#5D0016
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #540d21;
/* rgb */ color: rgb(84, 13, 33);
/* oklch */ color: oklch(29.7% 0.102 10.1);
Tailwind
colors: {
  custom: {
    50: '#89545b',
    500: '#540d21',
    950: '#000000',
  },
}
SCSS
$custom: #540d21;
$custom-light: #89545b;
$custom-dark: #000000;
JSON
{
  "hex": "#540d21",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 33
  },
  "hsl": {
    "h": 343.099,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2968,
    "c": 0.10215,
    "h": 10.1
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

primary
#540D21
secondary
#2E8F74
accent
#F0BC38
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540D21

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

Preview Lab → · Contrast checker → · Palette generator →

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