#540D3B#540D3B

#540D3B is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.7% C 0.113 H 346.3°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#540D3B
RGBrgb(84, 13, 59)
HSLhsl(321, 73%, 19%)
HSVhsv(321, 85%, 33%)
CMYKcmyk(0%, 84.5%, 29.8%, 67.1%)
CIE-LABlab(17.87, 36.09, -10.11)
CIE-LCHlch(17.87, 37.48, 344.35°)
OKLaboklab(30.7% 0.1098 -0.0268)
OKLCHoklch(30.7% 0.113 346.3)
XYZxyz(4.5897, 2.4890, 4.3755)
Luminance0.0249 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D3B #0D5426
analogous
#4A0D54 #540D3B #540D18
triadic
#540D3B #3B540D #0D3B54
tetradic
#540D3B #544A0D #0D5426 #0D1854
square
#540D3B #544A0D #0D5426 #0D1854
split-complementary
#540D3B #18540D #0D544A
monochromatic
#1A0413 #1F0516 #540D3B #891560 #BE1D85

Accessibility & contrast

On white

14.02
#540D3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#540D3B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D3B
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D3B#FFFFFF#000000##FFFFFF
##540D3B1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17243C
Deuteranopia (green-blind)
#2D3039
Tritanopia (blue-blind)
#5A0B23
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540d3b;
/* rgb */ color: rgb(84, 13, 59);
/* oklch */ color: oklch(30.7% 0.113 346.3);
Tailwind
colors: {
  custom: {
    50: '#875571',
    500: '#540d3b',
    950: '#000000',
  },
}
SCSS
$custom: #540d3b;
$custom-light: #875571;
$custom-dark: #000000;
JSON
{
  "hex": "#540d3b",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 59
  },
  "hsl": {
    "h": 321.127,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30697,
    "c": 0.11299,
    "h": 346.3
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#540D3B
secondary
#2E8F50
accent
#F07938
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0307
muted
#7D787A

Preview Lab

Preview with #540D3B

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

Preview Lab → · Contrast checker → · Palette generator →

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