#540F4D#540F4D

#540F4D is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.124 H 332.7°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#540F4D
RGBrgb(84, 15, 77)
HSLhsl(306, 70%, 19%)
HSVhsv(306, 82%, 33%)
CMYKcmyk(0%, 82.1%, 8.3%, 67.1%)
CIE-LABlab(19.07, 38.25, -20.72)
CIE-LCHlch(19.07, 43.50, 331.56°)
OKLaboklab(31.87% 0.1102 -0.0569)
OKLCHoklch(31.87% 0.124 332.7)
XYZxyz(5.1666, 2.7627, 7.2809)
Luminance0.0276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F4D #0F5416
analogous
#390F54 #540F4D #540F2B
triadic
#540F4D #4D540F #0F4D54
tetradic
#540F4D #54390F #0F5416 #0F2B54
square
#540F4D #54390F #0F5416 #0F2B54
split-complementary
#540F4D #2B540F #0F5439
monochromatic
#1A0518 #20061D #540F4D #88187D #BC22AC

Accessibility & contrast

On white

13.53
#540F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#540F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F4D
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F4D#FFFFFF#000000##FFFFFF
##540F4D1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B284F
Deuteranopia (green-blind)
#26324B
Tritanopia (blue-blind)
#58172D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540f4d;
/* rgb */ color: rgb(84, 15, 77);
/* oklch */ color: oklch(31.9% 0.124 332.7);
Tailwind
colors: {
  custom: {
    50: '#87567f',
    500: '#540f4d',
    950: '#000000',
  },
}
SCSS
$custom: #540f4d;
$custom-light: #87567f;
$custom-dark: #000000;
JSON
{
  "hex": "#540f4d",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 306.087,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31875,
    "c": 0.12404,
    "h": 332.7
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#540F4D
secondary
#318E3A
accent
#ED4D3B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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