#540D45#540D45

#540D45 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.2% C 0.120 H 338.4°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#540D45
RGBrgb(84, 13, 69)
HSLhsl(313, 73%, 19%)
HSVhsv(313, 85%, 33%)
CMYKcmyk(0%, 84.5%, 17.9%, 67.1%)
CIE-LABlab(18.38, 37.59, -16.30)
CIE-LCHlch(18.38, 40.97, 336.55°)
OKLaboklab(31.23% 0.1115 -0.0442)
OKLCHoklch(31.23% 0.12 338.4)
XYZxyz(4.8744, 2.6028, 5.8748)
Luminance0.0260 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D45 #0D541C
analogous
#400D54 #540D45 #540D22
triadic
#540D45 #45540D #0D4554
tetradic
#540D45 #54400D #0D541C #0D2254
square
#540D45 #54400D #0D541C #0D2254
split-complementary
#540D45 #22540D #0D5440
monochromatic
#1A0416 #1F0519 #540D45 #891571 #BE1D9C

Accessibility & contrast

On white

13.81
#540D45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#540D45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D45
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D45#FFFFFF#000000##FFFFFF
##540D451.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112646
Deuteranopia (green-blind)
#293143
Tritanopia (blue-blind)
#591128
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540d45;
/* rgb */ color: rgb(84, 13, 69);
/* oklch */ color: oklch(31.2% 0.120 338.4);
Tailwind
colors: {
  custom: {
    50: '#875579',
    500: '#540d45',
    950: '#000000',
  },
}
SCSS
$custom: #540d45;
$custom-light: #875579;
$custom-dark: #000000;
JSON
{
  "hex": "#540d45",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 69
  },
  "hsl": {
    "h": 312.676,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31231,
    "c": 0.11998,
    "h": 338.4
  },
  "luminance": 0.02602
}

Semantic roles & 50–950 ramp

primary
#540D45
secondary
#2E8F42
accent
#F05F38
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540D45

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

Preview Lab → · Contrast checker → · Palette generator →

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