#540D42#540D42

#540D42 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.1% C 0.118 H 340.6°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#540D42
RGBrgb(84, 13, 66)
HSLhsl(315, 73%, 19%)
HSVhsv(315, 85%, 33%)
CMYKcmyk(0%, 84.5%, 21.4%, 67.1%)
CIE-LABlab(18.22, 37.12, -14.47)
CIE-LCHlch(18.22, 39.84, 338.70°)
OKLaboklab(31.06% 0.1111 -0.039)
OKLCHoklch(31.06% 0.118 340.6)
XYZxyz(4.7836, 2.5665, 5.3967)
Luminance0.0257 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D42 #0D541F
analogous
#430D54 #540D42 #540D1F
triadic
#540D42 #42540D #0D4254
tetradic
#540D42 #54430D #0D541F #0D1F54
square
#540D42 #54430D #0D541F #0D1F54
split-complementary
#540D42 #1F540D #0D5443
monochromatic
#1A0415 #1F0518 #540D42 #89156C #BE1D95

Accessibility & contrast

On white

13.88
#540D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#540D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D42
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D42#FFFFFF#000000##FFFFFF
##540D421.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132543
Deuteranopia (green-blind)
#2A3040
Tritanopia (blue-blind)
#5A0F26
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540d42;
/* rgb */ color: rgb(84, 13, 66);
/* oklch */ color: oklch(31.1% 0.118 340.6);
Tailwind
colors: {
  custom: {
    50: '#875576',
    500: '#540d42',
    950: '#000000',
  },
}
SCSS
$custom: #540d42;
$custom-light: #875576;
$custom-dark: #000000;
JSON
{
  "hex": "#540d42",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 315.211,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31063,
    "c": 0.11777,
    "h": 340.6
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#540D42
secondary
#2E8F47
accent
#F06738
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540D42

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

Preview Lab → · Contrast checker → · Palette generator →

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