#540C50#540C50

#540C50 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.130 H 330.7°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#540C50
RGBrgb(84, 12, 80)
HSLhsl(303, 75%, 19%)
HSVhsv(303, 86%, 33%)
CMYKcmyk(0%, 85.7%, 4.8%, 67.1%)
CIE-LABlab(18.92, 39.74, -23.00)
CIE-LCHlch(18.92, 45.91, 329.94°)
OKLaboklab(31.83% 0.1131 -0.0635)
OKLCHoklch(31.83% 0.13 330.7)
XYZxyz(5.2356, 2.7274, 7.8385)
Luminance0.0273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C50 #0C5410
analogous
#340C54 #540C50 #540C2C
triadic
#540C50 #50540C #0C5054
tetradic
#540C50 #54340C #0C5410 #0C2C54
square
#540C50 #54340C #0C5410 #0C2C54
split-complementary
#540C50 #2C540C #0C5434
monochromatic
#1B041A #1E041D #540C50 #8A1483 #BF1BB6

Accessibility & contrast

On white

13.59
#540C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540C50
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C50#FFFFFF#000000##FFFFFF
##540C501.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032852
Deuteranopia (green-blind)
#24314E
Tritanopia (blue-blind)
#58172E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540c50;
/* rgb */ color: rgb(84, 12, 80);
/* oklch */ color: oklch(31.8% 0.130 330.7);
Tailwind
colors: {
  custom: {
    50: '#875581',
    500: '#540c50',
    950: '#000000',
  },
}
SCSS
$custom: #540c50;
$custom-light: #875581;
$custom-dark: #000000;
JSON
{
  "hex": "#540c50",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 303.333,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.31827,
    "c": 0.12967,
    "h": 330.7
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#540C50
secondary
#2D8F32
accent
#F24136
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540C50

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

Preview Lab → · Contrast checker → · Palette generator →

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