#540E4A#540E4A

#540E4A is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.123 H 334.8°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#540E4A
RGBrgb(84, 14, 74)
HSLhsl(309, 71%, 19%)
HSVhsv(309, 83%, 33%)
CMYKcmyk(0%, 83.3%, 11.9%, 67.1%)
CIE-LABlab(18.77, 38.08, -19.13)
CIE-LCHlch(18.77, 42.61, 333.33°)
OKLaboklab(31.61% 0.111 -0.0523)
OKLCHoklch(31.61% 0.123 334.8)
XYZxyz(5.0493, 2.6938, 6.7313)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E4A #0E5418
analogous
#3B0E54 #540E4A #540E27
triadic
#540E4A #4A540E #0E4A54
tetradic
#540E4A #543B0E #0E5418 #0E2754
square
#540E4A #543B0E #0E5418 #0E2754
split-complementary
#540E4A #27540E #0E543B
monochromatic
#1A0417 #20051C #540E4A #881778 #BD1FA6

Accessibility & contrast

On white

13.65
#540E4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#540E4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E4A
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E4A#FFFFFF#000000##FFFFFF
##540E4A1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D274C
Deuteranopia (green-blind)
#273148
Tritanopia (blue-blind)
#58142B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540e4a;
/* rgb */ color: rgb(84, 14, 74);
/* oklch */ color: oklch(31.6% 0.123 334.8);
Tailwind
colors: {
  custom: {
    50: '#87567c',
    500: '#540e4a',
    950: '#000000',
  },
}
SCSS
$custom: #540e4a;
$custom-light: #87567c;
$custom-dark: #000000;
JSON
{
  "hex": "#540e4a",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 74
  },
  "hsl": {
    "h": 308.571,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31607,
    "c": 0.12273,
    "h": 334.8
  },
  "luminance": 0.02693
}

Semantic roles & 50–950 ramp

primary
#540E4A
secondary
#2F8E3D
accent
#EE533A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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