#540D49#540D49

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

Color values

HEX#540D49
RGBrgb(84, 13, 73)
HSLhsl(309, 73%, 19%)
HSVhsv(309, 85%, 33%)
CMYKcmyk(0%, 84.5%, 13.1%, 67.1%)
CIE-LABlab(18.60, 38.24, -18.71)
CIE-LCHlch(18.60, 42.57, 333.93°)
OKLaboklab(31.47% 0.1119 -0.0511)
OKLCHoklch(31.47% 0.123 335.4)
XYZxyz(5.0028, 2.6542, 6.5509)
Luminance0.0265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540D49 #0D5418
analogous
#3C0D54 #540D49 #540D26
triadic
#540D49 #49540D #0D4954
tetradic
#540D49 #543C0D #0D5418 #0D2654
square
#540D49 #543C0D #0D5418 #0D2654
split-complementary
#540D49 #26540D #0D543C
monochromatic
#1A0417 #1F051B #540D49 #891577 #BE1DA5

Accessibility & contrast

On white

13.72
#540D49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#540D49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540D49
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540D49#FFFFFF#000000##FFFFFF
##540D491.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D274B
Deuteranopia (green-blind)
#283147
Tritanopia (blue-blind)
#59132A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540d49;
/* rgb */ color: rgb(84, 13, 73);
/* oklch */ color: oklch(31.5% 0.123 335.4);
Tailwind
colors: {
  custom: {
    50: '#87557c',
    500: '#540d49',
    950: '#000000',
  },
}
SCSS
$custom: #540d49;
$custom-light: #87557c;
$custom-dark: #000000;
JSON
{
  "hex": "#540d49",
  "rgb": {
    "r": 84,
    "g": 13,
    "b": 73
  },
  "hsl": {
    "h": 309.296,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31465,
    "c": 0.12304,
    "h": 335.4
  },
  "luminance": 0.02654
}

Semantic roles & 50–950 ramp

primary
#540D49
secondary
#2E8F3D
accent
#F05438
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540D49

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

Preview Lab → · Contrast checker → · Palette generator →

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