#540C48#540C48

#540C48 is a dark, vivid pink. Relative luminance 0.026; OKLCH L 31.3% C 0.123 H 336.1°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#540C48
RGBrgb(84, 12, 72)
HSLhsl(310, 75%, 19%)
HSVhsv(310, 86%, 33%)
CMYKcmyk(0%, 85.7%, 14.3%, 67.1%)
CIE-LABlab(18.44, 38.38, -18.28)
CIE-LCHlch(18.44, 42.52, 334.53°)
OKLaboklab(31.33% 0.1128 -0.0499)
OKLCHoklch(31.33% 0.123 336.1)
XYZxyz(4.9574, 2.6161, 6.3735)
Luminance0.0262 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C48 #0C5418
analogous
#3C0C54 #540C48 #540C24
triadic
#540C48 #48540C #0C4854
tetradic
#540C48 #543C0C #0C5418 #0C2454
square
#540C48 #543C0C #0C5418 #0C2454
split-complementary
#540C48 #24540C #0C543C
monochromatic
#1B0417 #1E041A #540C48 #8A1476 #BF1BA4

Accessibility & contrast

On white

13.79
#540C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540C48
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C48#FFFFFF#000000##FFFFFF
##540C481.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D264A
Deuteranopia (green-blind)
#283146
Tritanopia (blue-blind)
#591229
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540c48;
/* rgb */ color: rgb(84, 12, 72);
/* oklch */ color: oklch(31.3% 0.123 336.1);
Tailwind
colors: {
  custom: {
    50: '#87557b',
    500: '#540c48',
    950: '#000000',
  },
}
SCSS
$custom: #540c48;
$custom-light: #87557b;
$custom-dark: #000000;
JSON
{
  "hex": "#540c48",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 310,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.31327,
    "c": 0.12331,
    "h": 336.1
  },
  "luminance": 0.02616
}

Semantic roles & 50–950 ramp

primary
#540C48
secondary
#2D8F3D
accent
#F25536
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540C48

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

Preview Lab → · Contrast checker → · Palette generator →

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