#540E57#540E57

#540E57 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.134 H 326.3°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#540E57
RGBrgb(84, 14, 87)
HSLhsl(298, 72%, 20%)
HSVhsv(298, 84%, 34%)
CMYKcmyk(3.4%, 83.9%, 0%, 65.9%)
CIE-LABlab(19.59, 40.39, -26.66)
CIE-LCHlch(19.59, 48.40, 326.57°)
OKLaboklab(32.45% 0.1111 -0.0742)
OKLCHoklch(32.45% 0.134 326.3)
XYZxyz(5.5334, 2.8874, 9.2809)
Luminance0.0289 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E57 #11570E
analogous
#2F0E57 #540E57 #570E36
triadic
#540E57 #57540E #0E5754
tetradic
#540E57 #572F0E #11570E #0E3657
square
#540E57 #572F0E #11570E #0E3657
split-complementary
#540E57 #36570E #0E572F
monochromatic
#19041A #210622 #540E57 #87168C #BA1FC0

Accessibility & contrast

On white

13.31
#540E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#540E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E57
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E57#FFFFFF#000000##FFFFFF
##540E571.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#203255
Tritanopia (blue-blind)
#561B32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540e57;
/* rgb */ color: rgb(84, 14, 87);
/* oklch */ color: oklch(32.5% 0.134 326.3);
Tailwind
colors: {
  custom: {
    50: '#875787',
    500: '#540e57',
    950: '#000000',
  },
}
SCSS
$custom: #540e57;
$custom-light: #875787;
$custom-dark: #000000;
JSON
{
  "hex": "#540e57",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 87
  },
  "hsl": {
    "h": 297.534,
    "s": 72.277,
    "l": 19.804
  },
  "oklch": {
    "l": 0.3245,
    "c": 0.13355,
    "h": 326.3
  },
  "luminance": 0.02887
}

Semantic roles & 50–950 ramp

primary
#540E57
secondary
#349130
accent
#EF3940
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C030B
muted
#7D787C

Preview Lab

Preview with #540E57

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

Preview Lab → · Contrast checker → · Palette generator →

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