#540F50#540F50

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

Color values

HEX#540F50
RGBrgb(84, 15, 80)
HSLhsl(303, 70%, 19%)
HSVhsv(303, 82%, 33%)
CMYKcmyk(0%, 82.1%, 4.8%, 67.1%)
CIE-LABlab(19.25, 38.78, -22.47)
CIE-LCHlch(19.25, 44.82, 329.91°)
OKLaboklab(32.07% 0.1103 -0.062)
OKLCHoklch(32.07% 0.127 330.7)
XYZxyz(5.2749, 2.8061, 7.8517)
Luminance0.0281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F50 #0F5413
analogous
#360F54 #540F50 #540F2E
triadic
#540F50 #50540F #0F5054
tetradic
#540F50 #54360F #0F5413 #0F2E54
square
#540F50 #54360F #0F5413 #0F2E54
split-complementary
#540F50 #2E540F #0F5436
monochromatic
#1A0519 #20061F #540F50 #881881 #BC22B3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##540F50#FFFFFF#000000##FFFFFF
##540F501.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)
#072952
Deuteranopia (green-blind)
#25324E
Tritanopia (blue-blind)
#58182F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540f50;
/* rgb */ color: rgb(84, 15, 80);
/* oklch */ color: oklch(32.1% 0.127 330.7);
Tailwind
colors: {
  custom: {
    50: '#875781',
    500: '#540f50',
    950: '#000000',
  },
}
SCSS
$custom: #540f50;
$custom-light: #875781;
$custom-dark: #000000;
JSON
{
  "hex": "#540f50",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 303.478,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.32065,
    "c": 0.12653,
    "h": 330.7
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#540F50
secondary
#318E36
accent
#ED463B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540F50

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

Preview Lab → · Contrast checker → · Palette generator →

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