#540F51#540F51

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

Color values

HEX#540F51
RGBrgb(84, 15, 81)
HSLhsl(303, 70%, 19%)
HSVhsv(303, 82%, 33%)
CMYKcmyk(0%, 82.1%, 3.6%, 67.1%)
CIE-LABlab(19.31, 38.96, -23.05)
CIE-LCHlch(19.31, 45.27, 329.39°)
OKLaboklab(32.13% 0.1103 -0.0637)
OKLCHoklch(32.13% 0.127 330)
XYZxyz(5.3122, 2.8210, 8.0477)
Luminance0.0282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F51 #0F5412
analogous
#350F54 #540F51 #540F2F
triadic
#540F51 #51540F #0F5154
tetradic
#540F51 #54350F #0F5412 #0F2F54
square
#540F51 #54350F #0F5412 #0F2F54
split-complementary
#540F51 #2F540F #0F5435
monochromatic
#1A0519 #20061F #540F51 #881883 #BC22B5

Accessibility & contrast

On white

13.43
#540F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F51
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F51#FFFFFF#000000##FFFFFF
##540F511.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062953
Deuteranopia (green-blind)
#24324F
Tritanopia (blue-blind)
#57192F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540f51;
/* rgb */ color: rgb(84, 15, 81);
/* oklch */ color: oklch(32.1% 0.127 330.0);
Tailwind
colors: {
  custom: {
    50: '#875782',
    500: '#540f51',
    950: '#000000',
  },
}
SCSS
$custom: #540f51;
$custom-light: #875782;
$custom-dark: #000000;
JSON
{
  "hex": "#540f51",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 302.609,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.32129,
    "c": 0.12737,
    "h": 330
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#540F51
secondary
#318E35
accent
#ED433B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540F51

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

Preview Lab → · Contrast checker → · Palette generator →

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