#540F55#540F55

#540F55 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.131 H 327.4°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#540F55
RGBrgb(84, 15, 85)
HSLhsl(299, 70%, 20%)
HSVhsv(299, 82%, 33%)
CMYKcmyk(1.2%, 82.4%, 0%, 66.7%)
CIE-LABlab(19.57, 39.69, -25.35)
CIE-LCHlch(19.57, 47.10, 327.44°)
OKLaboklab(32.39% 0.1102 -0.0704)
OKLCHoklch(32.39% 0.131 327.4)
XYZxyz(5.4666, 2.8827, 8.8611)
Luminance0.0288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F55 #10550F
analogous
#310F55 #540F55 #550F33
triadic
#540F55 #55540F #0F5554
tetradic
#540F55 #55310F #10550F #0F3355
square
#540F55 #55310F #10550F #0F3355
split-complementary
#540F55 #33550F #0F5531
monochromatic
#1A051A #210621 #540F55 #871889 #BB21BD

Accessibility & contrast

On white

13.32
#540F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F55
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F55#FFFFFF#000000##FFFFFF
##540F551.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A57
Deuteranopia (green-blind)
#223253
Tritanopia (blue-blind)
#571B32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540f55;
/* rgb */ color: rgb(84, 15, 85);
/* oklch */ color: oklch(32.4% 0.131 327.4);
Tailwind
colors: {
  custom: {
    50: '#875785',
    500: '#540f55',
    950: '#000000',
  },
}
SCSS
$custom: #540f55;
$custom-light: #875785;
$custom-dark: #000000;
JSON
{
  "hex": "#540f55",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 85
  },
  "hsl": {
    "h": 299.143,
    "s": 70,
    "l": 19.608
  },
  "oklch": {
    "l": 0.32394,
    "c": 0.13077,
    "h": 327.4
  },
  "luminance": 0.02882
}

Semantic roles & 50–950 ramp

primary
#540F55
secondary
#328F31
accent
#ED3B3E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C030B
muted
#7D787C

Preview Lab

Preview with #540F55

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

Preview Lab → · Contrast checker → · Palette generator →

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