#540E48#540E48

#540E48 is a dark, vivid pink. Relative luminance 0.027; OKLCH L 31.5% C 0.121 H 336.2°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#540E48
RGBrgb(84, 14, 72)
HSLhsl(310, 71%, 19%)
HSVhsv(310, 83%, 33%)
CMYKcmyk(0%, 83.3%, 14.3%, 67.1%)
CIE-LABlab(18.66, 37.74, -17.93)
CIE-LCHlch(18.66, 41.79, 334.59°)
OKLaboklab(31.49% 0.1109 -0.0489)
OKLCHoklch(31.49% 0.121 336.2)
XYZxyz(4.9830, 2.6672, 6.3820)
Luminance0.0267 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E48 #0E541A
analogous
#3D0E54 #540E48 #540E25
triadic
#540E48 #48540E #0E4854
tetradic
#540E48 #543D0E #0E541A #0E2554
square
#540E48 #543D0E #0E541A #0E2554
split-complementary
#540E48 #25540E #0E543D
monochromatic
#1A0416 #20051B #540E48 #881775 #BD1FA2

Accessibility & contrast

On white

13.70
#540E48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#540E48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E48
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E48#FFFFFF#000000##FFFFFF
##540E481.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F274A
Deuteranopia (green-blind)
#283146
Tritanopia (blue-blind)
#59132A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540e48;
/* rgb */ color: rgb(84, 14, 72);
/* oklch */ color: oklch(31.5% 0.121 336.2);
Tailwind
colors: {
  custom: {
    50: '#87567b',
    500: '#540e48',
    950: '#000000',
  },
}
SCSS
$custom: #540e48;
$custom-light: #87567b;
$custom-dark: #000000;
JSON
{
  "hex": "#540e48",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 72
  },
  "hsl": {
    "h": 310.286,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31487,
    "c": 0.12116,
    "h": 336.2
  },
  "luminance": 0.02667
}

Semantic roles & 50–950 ramp

primary
#540E48
secondary
#2F8E40
accent
#EE593A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540E48

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

Preview Lab → · Contrast checker → · Palette generator →

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