#540F54#540F54

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

Color values

HEX#540F54
RGBrgb(84, 15, 84)
HSLhsl(300, 70%, 19%)
HSVhsv(300, 82%, 33%)
CMYKcmyk(0%, 82.1%, 0%, 67.1%)
CIE-LABlab(19.50, 39.51, -24.78)
CIE-LCHlch(19.50, 46.63, 327.91°)
OKLaboklab(32.33% 0.1103 -0.0687)
OKLCHoklch(32.33% 0.13 328.1)
XYZxyz(5.4271, 2.8670, 8.6533)
Luminance0.0287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F54 #0F540F
analogous
#320F54 #540F54 #540F32
triadic
#540F54 #54540F #0F5454
tetradic
#540F54 #54320F #0F540F #0F3254
square
#540F54 #54320F #0F540F #0F3254
split-complementary
#540F54 #32540F #0F5432
monochromatic
#1A051A #200620 #540F54 #881888 #BC22BC

Accessibility & contrast

On white

13.35
#540F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F54
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F54#FFFFFF#000000##FFFFFF
##540F541.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012A56
Deuteranopia (green-blind)
#233252
Tritanopia (blue-blind)
#571A31
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540f54;
/* rgb */ color: rgb(84, 15, 84);
/* oklch */ color: oklch(32.3% 0.130 328.1);
Tailwind
colors: {
  custom: {
    50: '#875784',
    500: '#540f54',
    950: '#000000',
  },
}
SCSS
$custom: #540f54;
$custom-light: #875784;
$custom-dark: #000000;
JSON
{
  "hex": "#540f54",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 300,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.32327,
    "c": 0.12992,
    "h": 328.1
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#540F54
secondary
#318E31
accent
#ED3B3B
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C030B
muted
#7D787C

Preview Lab

Preview with #540F54

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

Preview Lab → · Contrast checker → · Palette generator →

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