#540E5D#540E5D

#540E5D is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.139 H 322.8°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#540E5D
RGBrgb(84, 14, 93)
HSLhsl(293, 74%, 21%)
HSVhsv(293, 85%, 36%)
CMYKcmyk(9.7%, 84.9%, 0%, 63.5%)
CIE-LABlab(20.00, 41.54, -30.01)
CIE-LCHlch(20.00, 51.24, 324.16°)
OKLaboklab(32.88% 0.1105 -0.084)
OKLCHoklch(32.88% 0.139 322.8)
XYZxyz(5.7888, 2.9896, 10.6259)
Luminance0.0299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E5D #175D0E
analogous
#2C0E5D #540E5D #5D0E3E
triadic
#540E5D #5D540E #0E5D54
tetradic
#540E5D #5D2C0E #175D0E #0E3E5D
square
#540E5D #5D2C0E #175D0E #0E3E5D
split-complementary
#540E5D #3E5D0E #0E5D2C
monochromatic
#18041B #240628 #540E5D #841692 #B41EC7

Accessibility & contrast

On white

13.14
#540E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#540E5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E5D
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E5D#FFFFFF#000000##FFFFFF
##540E5D1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#1C335B
Tritanopia (blue-blind)
#551E36
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #540e5d;
/* rgb */ color: rgb(84, 14, 93);
/* oklch */ color: oklch(32.9% 0.139 322.8);
Tailwind
colors: {
  custom: {
    50: '#87578b',
    500: '#540e5d',
    950: '#000000',
  },
}
SCSS
$custom: #540e5d;
$custom-light: #87578b;
$custom-dark: #000000;
JSON
{
  "hex": "#540e5d",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 93
  },
  "hsl": {
    "h": 293.165,
    "s": 73.832,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32877,
    "c": 0.13879,
    "h": 322.8
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#540E5D
secondary
#3C9730
accent
#F0374C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C030C
muted
#7D787D

Preview Lab

Preview with #540E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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