#540F52#540F52

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

Color values

HEX#540F52
RGBrgb(84, 15, 82)
HSLhsl(302, 70%, 19%)
HSVhsv(302, 82%, 33%)
CMYKcmyk(0%, 82.1%, 2.4%, 67.1%)
CIE-LABlab(19.38, 39.14, -23.63)
CIE-LCHlch(19.38, 45.72, 328.88°)
OKLaboklab(32.19% 0.1103 -0.0654)
OKLCHoklch(32.19% 0.128 329.4)
XYZxyz(5.3499, 2.8361, 8.2466)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F52 #0F5411
analogous
#340F54 #540F52 #540F30
triadic
#540F52 #52540F #0F5254
tetradic
#540F52 #54340F #0F5411 #0F3054
square
#540F52 #54340F #0F5411 #0F3054
split-complementary
#540F52 #30540F #0F5434
monochromatic
#1A0519 #20061F #540F52 #881885 #BC22B7

Accessibility & contrast

On white

13.40
#540F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#540F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F52
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F52#FFFFFF#000000##FFFFFF
##540F521.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042954
Deuteranopia (green-blind)
#243250
Tritanopia (blue-blind)
#571930
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540f52;
/* rgb */ color: rgb(84, 15, 82);
/* oklch */ color: oklch(32.2% 0.128 329.4);
Tailwind
colors: {
  custom: {
    50: '#875783',
    500: '#540f52',
    950: '#000000',
  },
}
SCSS
$custom: #540f52;
$custom-light: #875783;
$custom-dark: #000000;
JSON
{
  "hex": "#540f52",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 301.739,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.32194,
    "c": 0.12821,
    "h": 329.4
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#540F52
secondary
#318E34
accent
#ED403B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540F52

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

Preview Lab → · Contrast checker → · Palette generator →

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