#540E42#540E42

#540E42 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.1% C 0.117 H 340.7°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#540E42
RGBrgb(84, 14, 66)
HSLhsl(315, 71%, 19%)
HSVhsv(315, 83%, 33%)
CMYKcmyk(0%, 83.3%, 21.4%, 67.1%)
CIE-LABlab(18.33, 36.79, -14.29)
CIE-LCHlch(18.33, 39.47, 338.77°)
OKLaboklab(31.15% 0.1101 -0.0385)
OKLCHoklch(31.15% 0.117 340.7)
XYZxyz(4.7967, 2.5927, 5.4010)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E42 #0E5420
analogous
#430E54 #540E42 #540E1F
triadic
#540E42 #42540E #0E4254
tetradic
#540E42 #54430E #0E5420 #0E1F54
square
#540E42 #54430E #0E5420 #0E1F54
split-complementary
#540E42 #1F540E #0E5443
monochromatic
#1A0415 #200519 #540E42 #88176B #BD1F94

Accessibility & contrast

On white

13.83
#540E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540E42
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E42#FFFFFF#000000##FFFFFF
##540E421.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142643
Deuteranopia (green-blind)
#2B3140
Tritanopia (blue-blind)
#5A1027
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540e42;
/* rgb */ color: rgb(84, 14, 66);
/* oklch */ color: oklch(31.1% 0.117 340.7);
Tailwind
colors: {
  custom: {
    50: '#875576',
    500: '#540e42',
    950: '#000000',
  },
}
SCSS
$custom: #540e42;
$custom-light: #875576;
$custom-dark: #000000;
JSON
{
  "hex": "#540e42",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 66
  },
  "hsl": {
    "h": 315.429,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31146,
    "c": 0.11665,
    "h": 340.7
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#540E42
secondary
#2F8E48
accent
#EE683A
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #540E42

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

Preview Lab → · Contrast checker → · Palette generator →

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