#540F21#540F21

#540F21 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.9% C 0.100 H 10.8°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#540F21
RGBrgb(84, 15, 33)
HSLhsl(344, 70%, 19%)
HSVhsv(344, 82%, 33%)
CMYKcmyk(0%, 82.1%, 60.7%, 67.1%)
CIE-LABlab(17.16, 32.43, 7.45)
CIE-LCHlch(17.16, 33.28, 12.94°)
OKLaboklab(29.87% 0.0983 0.0188)
OKLCHoklch(29.87% 0.1 10.8)
XYZxyz(4.1019, 2.3369, 1.6736)
Luminance0.0234 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F21 #0F5442
analogous
#540F44 #540F21 #54200F
triadic
#540F21 #21540F #0F2154
tetradic
#540F21 #44540F #0F5442 #200F54
square
#540F21 #44540F #0F5442 #200F54
split-complementary
#540F21 #0F5420 #0F4454
monochromatic
#1A050A #20060D #540F21 #881835 #BC224A

Accessibility & contrast

On white

14.31
#540F21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#540F21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F21
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F21#FFFFFF#000000##FFFFFF
##540F211.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #540f21;
/* rgb */ color: rgb(84, 15, 33);
/* oklch */ color: oklch(29.9% 0.100 10.8);
Tailwind
colors: {
  custom: {
    50: '#89555b',
    500: '#540f21',
    950: '#000000',
  },
}
SCSS
$custom: #540f21;
$custom-light: #89555b;
$custom-dark: #000000;
JSON
{
  "hex": "#540f21",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 33
  },
  "hsl": {
    "h": 344.348,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2987,
    "c": 0.10002,
    "h": 10.8
  },
  "luminance": 0.02336
}

Semantic roles & 50–950 ramp

primary
#540F21
secondary
#318E76
accent
#EDBE3B
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #540F21

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

Preview Lab → · Contrast checker → · Palette generator →

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