#540E47#540E47

#540E47 is a dark, vivid pink. Relative luminance 0.027; OKLCH L 31.4% C 0.120 H 336.9°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#540E47
RGBrgb(84, 14, 71)
HSLhsl(311, 71%, 19%)
HSVhsv(311, 83%, 33%)
CMYKcmyk(0%, 83.3%, 15.5%, 67.1%)
CIE-LABlab(18.60, 37.58, -17.33)
CIE-LCHlch(18.60, 41.38, 335.24°)
OKLaboklab(31.43% 0.1108 -0.0472)
OKLCHoklch(31.43% 0.12 336.9)
XYZxyz(4.9506, 2.6543, 6.2116)
Luminance0.0265 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E47 #0E541B
analogous
#3E0E54 #540E47 #540E24
triadic
#540E47 #47540E #0E4754
tetradic
#540E47 #543E0E #0E541B #0E2454
square
#540E47 #543E0E #0E541B #0E2454
split-complementary
#540E47 #24540E #0E543E
monochromatic
#1A0416 #20051B #540E47 #881773 #BD1FA0

Accessibility & contrast

On white

13.72
#540E47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540E47
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E47#FFFFFF#000000##FFFFFF
##540E471.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102749
Deuteranopia (green-blind)
#293145
Tritanopia (blue-blind)
#591329
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540e47;
/* rgb */ color: rgb(84, 14, 71);
/* oklch */ color: oklch(31.4% 0.120 336.9);
Tailwind
colors: {
  custom: {
    50: '#87567a',
    500: '#540e47',
    950: '#000000',
  },
}
SCSS
$custom: #540e47;
$custom-light: #87567a;
$custom-dark: #000000;
JSON
{
  "hex": "#540e47",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 71
  },
  "hsl": {
    "h": 311.143,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31429,
    "c": 0.12039,
    "h": 336.9
  },
  "luminance": 0.02654
}

Semantic roles & 50–950 ramp

primary
#540E47
secondary
#2F8E41
accent
#EE5B3A
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540E47

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

Preview Lab → · Contrast checker → · Palette generator →

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