#540D34#540D34

#540D34 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.4% C 0.109 H 352.3°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#540D34
RGBrgb(84, 13, 52)
HSLhsl(327, 73%, 19%)
HSVhsv(327, 85%, 33%)
CMYKcmyk(0%, 84.5%, 38.1%, 67.1%)
CIE-LABlab(17.56, 35.16, -5.63)
CIE-LCHlch(17.56, 35.61, 350.91°)
OKLaboklab(30.37% 0.1079 -0.0145)
OKLCHoklch(30.37% 0.109 352.3)
XYZxyz(4.4202, 2.4211, 3.4827)
Luminance0.0242 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D34 #0D542D
analogous
#510D54 #540D34 #540D11
triadic
#540D34 #34540D #0D3454
tetradic
#540D34 #54510D #0D542D #0D1154
square
#540D34 #54510D #0D542D #0D1154
split-complementary
#540D34 #11540D #0D5451
monochromatic
#1A0410 #1F0513 #540D34 #891555 #BE1D76

Accessibility & contrast

On white

14.15
#540D34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#540D34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D34
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D34#FFFFFF#000000##FFFFFF
##540D341.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2335
Deuteranopia (green-blind)
#2F3032
Tritanopia (blue-blind)
#5B061F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #540d34;
/* rgb */ color: rgb(84, 13, 52);
/* oklch */ color: oklch(30.4% 0.109 352.3);
Tailwind
colors: {
  custom: {
    50: '#88556b',
    500: '#540d34',
    950: '#000000',
  },
}
SCSS
$custom: #540d34;
$custom-light: #88556b;
$custom-dark: #000000;
JSON
{
  "hex": "#540d34",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 52
  },
  "hsl": {
    "h": 327.042,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.3037,
    "c": 0.10887,
    "h": 352.3
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#540D34
secondary
#2E8F5A
accent
#F08B38
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0306
muted
#7D787A

Preview Lab

Preview with #540D34

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

Preview Lab → · Contrast checker → · Palette generator →

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