#540E50#540E50

#540E50 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.128 H 330.7°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#540E50
RGBrgb(84, 14, 80)
HSLhsl(303, 71%, 19%)
HSVhsv(303, 83%, 33%)
CMYKcmyk(0%, 83.3%, 4.8%, 67.1%)
CIE-LABlab(19.13, 39.11, -22.65)
CIE-LCHlch(19.13, 45.20, 329.92°)
OKLaboklab(31.98% 0.1113 -0.0625)
OKLCHoklch(31.98% 0.128 330.7)
XYZxyz(5.2612, 2.7785, 7.8471)
Luminance0.0278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E50 #0E5412
analogous
#350E54 #540E50 #540E2D
triadic
#540E50 #50540E #0E5054
tetradic
#540E50 #54350E #0E5412 #0E2D54
square
#540E50 #54350E #0E5412 #0E2D54
split-complementary
#540E50 #2D540E #0E5435
monochromatic
#1A0419 #20051E #540E50 #881782 #BD1FB4

Accessibility & contrast

On white

13.50
#540E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#540E50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E50
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E50#FFFFFF#000000##FFFFFF
##540E501.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062852
Deuteranopia (green-blind)
#24324E
Tritanopia (blue-blind)
#58182E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540e50;
/* rgb */ color: rgb(84, 14, 80);
/* oklch */ color: oklch(32.0% 0.128 330.7);
Tailwind
colors: {
  custom: {
    50: '#875681',
    500: '#540e50',
    950: '#000000',
  },
}
SCSS
$custom: #540e50;
$custom-light: #875681;
$custom-dark: #000000;
JSON
{
  "hex": "#540e50",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 80
  },
  "hsl": {
    "h": 303.429,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31982,
    "c": 0.12762,
    "h": 330.7
  },
  "luminance": 0.02778
}

Semantic roles & 50–950 ramp

primary
#540E50
secondary
#2F8E35
accent
#EE443A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540E50

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

Preview Lab → · Contrast checker → · Palette generator →

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