#540E4F#540E4F

#540E4F is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.127 H 331.3°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#540E4F
RGBrgb(84, 14, 79)
HSLhsl(304, 71%, 19%)
HSVhsv(304, 83%, 33%)
CMYKcmyk(0%, 83.3%, 6%, 67.1%)
CIE-LABlab(19.07, 38.94, -22.07)
CIE-LCHlch(19.07, 44.76, 330.45°)
OKLaboklab(31.92% 0.1112 -0.0608)
OKLCHoklch(31.92% 0.127 331.3)
XYZxyz(5.2245, 2.7638, 7.6539)
Luminance0.0276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540E4F #0E5413
analogous
#360E54 #540E4F #540E2C
triadic
#540E4F #4F540E #0E4F54
tetradic
#540E4F #54360E #0E5413 #0E2C54
square
#540E4F #54360E #0E5413 #0E2C54
split-complementary
#540E4F #2C540E #0E5436
monochromatic
#1A0419 #20051E #540E4F #881780 #BD1FB2

Accessibility & contrast

On white

13.53
#540E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#540E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540E4F
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540E4F#FFFFFF#000000##FFFFFF
##540E4F1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072851
Deuteranopia (green-blind)
#25324D
Tritanopia (blue-blind)
#58172E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540e4f;
/* rgb */ color: rgb(84, 14, 79);
/* oklch */ color: oklch(31.9% 0.127 331.3);
Tailwind
colors: {
  custom: {
    50: '#875680',
    500: '#540e4f',
    950: '#000000',
  },
}
SCSS
$custom: #540e4f;
$custom-light: #875680;
$custom-dark: #000000;
JSON
{
  "hex": "#540e4f",
  "rgb": {
    "r": 84,
    "g": 14,
    "b": 79
  },
  "hsl": {
    "h": 304.286,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31918,
    "c": 0.1268,
    "h": 331.3
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#540E4F
secondary
#2F8E36
accent
#EE473A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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