#540F4C#540F4C

#540F4C is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.123 H 333.4°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#540F4C
RGBrgb(84, 15, 76)
HSLhsl(307, 70%, 19%)
HSVhsv(307, 82%, 33%)
CMYKcmyk(0%, 82.1%, 9.5%, 67.1%)
CIE-LABlab(19.01, 38.08, -20.13)
CIE-LCHlch(19.01, 43.07, 332.14°)
OKLaboklab(31.81% 0.1102 -0.0552)
OKLCHoklch(31.81% 0.123 333.4)
XYZxyz(5.1315, 2.7487, 7.0964)
Luminance0.0275 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F4C #0F5417
analogous
#3A0F54 #540F4C #540F29
triadic
#540F4C #4C540F #0F4C54
tetradic
#540F4C #543A0F #0F5417 #0F2954
square
#540F4C #543A0F #0F5417 #0F2954
split-complementary
#540F4C #29540F #0F543A
monochromatic
#1A0517 #20061D #540F4C #88187B #BC22AA

Accessibility & contrast

On white

13.55
#540F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F4C
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F4C#FFFFFF#000000##FFFFFF
##540F4C1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C284E
Deuteranopia (green-blind)
#27324A
Tritanopia (blue-blind)
#58162C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540f4c;
/* rgb */ color: rgb(84, 15, 76);
/* oklch */ color: oklch(31.8% 0.123 333.4);
Tailwind
colors: {
  custom: {
    50: '#87567e',
    500: '#540f4c',
    950: '#000000',
  },
}
SCSS
$custom: #540f4c;
$custom-light: #87567e;
$custom-dark: #000000;
JSON
{
  "hex": "#540f4c",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 306.957,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31813,
    "c": 0.12323,
    "h": 333.4
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#540F4C
secondary
#318E3C
accent
#ED503B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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