#540C55#540C55

#540C55 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.134 H 327.5°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#540C55
RGBrgb(84, 12, 85)
HSLhsl(299, 75%, 19%)
HSVhsv(299, 86%, 33%)
CMYKcmyk(1.2%, 85.9%, 0%, 66.7%)
CIE-LABlab(19.24, 40.64, -25.87)
CIE-LCHlch(19.24, 48.17, 327.52°)
OKLaboklab(32.16% 0.1129 -0.0718)
OKLCHoklch(32.16% 0.134 327.5)
XYZxyz(5.4272, 2.8040, 8.8480)
Luminance0.0280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C55 #0D550C
analogous
#300C55 #540C55 #550C32
triadic
#540C55 #55540C #0C5554
tetradic
#540C55 #55300C #0D550C #0C3255
square
#540C55 #55300C #0D550C #0C3255
split-complementary
#540C55 #32550C #0C5530
monochromatic
#1A041B #1F041F #540C55 #89148B #BE1BC0

Accessibility & contrast

On white

13.45
#540C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540C55
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C55#FFFFFF#000000##FFFFFF
##540C551.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#213253
Tritanopia (blue-blind)
#571931
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540c55;
/* rgb */ color: rgb(84, 12, 85);
/* oklch */ color: oklch(32.2% 0.134 327.5);
Tailwind
colors: {
  custom: {
    50: '#875685',
    500: '#540c55',
    950: '#000000',
  },
}
SCSS
$custom: #540c55;
$custom-light: #875685;
$custom-dark: #000000;
JSON
{
  "hex": "#540c55",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 299.178,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.32162,
    "c": 0.13382,
    "h": 327.5
  },
  "luminance": 0.02804
}

Semantic roles & 50–950 ramp

primary
#540C55
secondary
#2E902D
accent
#F23639
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C030B
muted
#7D787C

Preview Lab

Preview with #540C55

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

Preview Lab → · Contrast checker → · Palette generator →

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