#540F56#540F56

#540F56 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.132 H 326.8°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#540F56
RGBrgb(84, 15, 86)
HSLhsl(298, 70%, 20%)
HSVhsv(298, 83%, 34%)
CMYKcmyk(2.3%, 82.6%, 0%, 66.3%)
CIE-LABlab(19.63, 39.88, -25.92)
CIE-LCHlch(19.63, 47.56, 326.98°)
OKLaboklab(32.46% 0.1102 -0.072)
OKLCHoklch(32.46% 0.132 326.8)
XYZxyz(5.5066, 2.8987, 9.0718)
Luminance0.0290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F56 #11560F
analogous
#310F56 #540F56 #560F35
triadic
#540F56 #56540F #0F5654
tetradic
#540F56 #56310F #11560F #0F3556
square
#540F56 #56310F #11560F #0F3556
split-complementary
#540F56 #35560F #0F5631
monochromatic
#19051A #210622 #540F56 #87188A #BA21BE

Accessibility & contrast

On white

13.29
#540F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#540F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F56
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F56#FFFFFF#000000##FFFFFF
##540F561.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#213254
Tritanopia (blue-blind)
#571B32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540f56;
/* rgb */ color: rgb(84, 15, 86);
/* oklch */ color: oklch(32.5% 0.132 326.8);
Tailwind
colors: {
  custom: {
    50: '#875786',
    500: '#540f56',
    950: '#000000',
  },
}
SCSS
$custom: #540f56;
$custom-light: #875786;
$custom-dark: #000000;
JSON
{
  "hex": "#540f56",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 298.31,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.32462,
    "c": 0.13163,
    "h": 326.8
  },
  "luminance": 0.02898
}

Semantic roles & 50–950 ramp

primary
#540F56
secondary
#349031
accent
#ED3B40
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C030B
muted
#7D787C

Preview Lab

Preview with #540F56

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

Preview Lab → · Contrast checker → · Palette generator →

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