#540F53#540F53

#540F53 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.3% C 0.129 H 328.7°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#540F53
RGBrgb(84, 15, 83)
HSLhsl(301, 70%, 19%)
HSVhsv(301, 82%, 33%)
CMYKcmyk(0%, 82.1%, 1.2%, 67.1%)
CIE-LABlab(19.44, 39.32, -24.20)
CIE-LCHlch(19.44, 46.17, 328.39°)
OKLaboklab(32.26% 0.1103 -0.067)
OKLCHoklch(32.26% 0.129 328.7)
XYZxyz(5.3883, 2.8514, 8.4485)
Luminance0.0285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F53 #0F5410
analogous
#330F54 #540F53 #540F31
triadic
#540F53 #53540F #0F5354
tetradic
#540F53 #54330F #0F5410 #0F3154
square
#540F53 #54330F #0F5410 #0F3154
split-complementary
#540F53 #31540F #0F5433
monochromatic
#1A051A #200620 #540F53 #881886 #BC22BA

Accessibility & contrast

On white

13.37
#540F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F53
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F53#FFFFFF#000000##FFFFFF
##540F531.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032955
Deuteranopia (green-blind)
#233251
Tritanopia (blue-blind)
#571A30
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540f53;
/* rgb */ color: rgb(84, 15, 83);
/* oklch */ color: oklch(32.3% 0.129 328.7);
Tailwind
colors: {
  custom: {
    50: '#875784',
    500: '#540f53',
    950: '#000000',
  },
}
SCSS
$custom: #540f53;
$custom-light: #875784;
$custom-dark: #000000;
JSON
{
  "hex": "#540f53",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 83
  },
  "hsl": {
    "h": 300.87,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3226,
    "c": 0.12906,
    "h": 328.7
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#540F53
secondary
#318E32
accent
#ED3E3B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C030B
muted
#7D787C

Preview Lab

Preview with #540F53

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

Preview Lab → · Contrast checker → · Palette generator →

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