#540D39#540D39

#540D39 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.6% C 0.112 H 348.0°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#540D39
RGBrgb(84, 13, 57)
HSLhsl(323, 73%, 19%)
HSVhsv(323, 85%, 33%)
CMYKcmyk(0%, 84.5%, 32.1%, 67.1%)
CIE-LABlab(17.78, 35.81, -8.84)
CIE-LCHlch(17.78, 36.89, 346.13°)
OKLaboklab(30.6% 0.1093 -0.0233)
OKLCHoklch(30.6% 0.112 348)
XYZxyz(4.5388, 2.4686, 4.1076)
Luminance0.0247 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D39 #0D5428
analogous
#4C0D54 #540D39 #540D16
triadic
#540D39 #39540D #0D3954
tetradic
#540D39 #544C0D #0D5428 #0D1654
square
#540D39 #544C0D #0D5428 #0D1654
split-complementary
#540D39 #16540D #0D544C
monochromatic
#1A0412 #1F0515 #540D39 #89155D #BE1D81

Accessibility & contrast

On white

14.06
#540D39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#540D39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D39
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D39#FFFFFF#000000##FFFFFF
##540D391.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18243A
Deuteranopia (green-blind)
#2D3037
Tritanopia (blue-blind)
#5B0922
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #540d39;
/* rgb */ color: rgb(84, 13, 57);
/* oklch */ color: oklch(30.6% 0.112 348.0);
Tailwind
colors: {
  custom: {
    50: '#87556f',
    500: '#540d39',
    950: '#000000',
  },
}
SCSS
$custom: #540d39;
$custom-light: #87556f;
$custom-dark: #000000;
JSON
{
  "hex": "#540d39",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 57
  },
  "hsl": {
    "h": 322.817,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.306,
    "c": 0.11174,
    "h": 348
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#540D39
secondary
#2E8F53
accent
#F07E38
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0307
muted
#7D787A

Preview Lab

Preview with #540D39

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

Preview Lab → · Contrast checker → · Palette generator →

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