#540E21#540E21

#540E21 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.8% C 0.101 H 10.4°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#540E21
RGBrgb(84, 14, 33)
HSLhsl(344, 71%, 19%)
HSVhsv(344, 83%, 33%)
CMYKcmyk(0%, 83.3%, 60.7%, 67.1%)
CIE-LABlab(17.03, 32.80, 7.27)
CIE-LCHlch(17.03, 33.60, 12.50°)
OKLaboklab(29.77% 0.0994 0.0183)
OKLCHoklch(29.77% 0.101 10.4)
XYZxyz(4.0881, 2.3093, 1.6690)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E21 #0E5441
analogous
#540E44 #540E21 #541E0E
triadic
#540E21 #21540E #0E2154
tetradic
#540E21 #44540E #0E5441 #1E0E54
square
#540E21 #44540E #0E5441 #1E0E54
split-complementary
#540E21 #0E541E #0E4454
monochromatic
#1A040A #20050C #540E21 #881736 #BD1F4A

Accessibility & contrast

On white

14.37
#540E21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540E21
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E21#FFFFFF#000000##FFFFFF
##540E211.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540e21;
/* rgb */ color: rgb(84, 14, 33);
/* oklch */ color: oklch(29.8% 0.101 10.4);
Tailwind
colors: {
  custom: {
    50: '#89545b',
    500: '#540e21',
    950: '#000000',
  },
}
SCSS
$custom: #540e21;
$custom-light: #89545b;
$custom-dark: #000000;
JSON
{
  "hex": "#540e21",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 33
  },
  "hsl": {
    "h": 343.714,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29773,
    "c": 0.1011,
    "h": 10.4
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#540E21
secondary
#2F8E75
accent
#EEBD3A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540E21

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

Preview Lab → · Contrast checker → · Palette generator →

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