#540F49#540F49

#540F49 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.121 H 335.5°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#540F49
RGBrgb(84, 15, 73)
HSLhsl(310, 70%, 19%)
HSVhsv(310, 82%, 33%)
CMYKcmyk(0%, 82.1%, 13.1%, 67.1%)
CIE-LABlab(18.83, 37.57, -18.35)
CIE-LCHlch(18.83, 41.81, 333.97°)
OKLaboklab(31.63% 0.1099 -0.0501)
OKLCHoklch(31.63% 0.121 335.5)
XYZxyz(5.0297, 2.7080, 6.5598)
Luminance0.0271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F49 #0F541A
analogous
#3D0F54 #540F49 #540F27
triadic
#540F49 #49540F #0F4954
tetradic
#540F49 #543D0F #0F541A #0F2754
square
#540F49 #543D0F #0F541A #0F2754
split-complementary
#540F49 #27540F #0F543D
monochromatic
#1A0517 #20061C #540F49 #881876 #BC22A3

Accessibility & contrast

On white

13.62
#540F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#540F49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F49
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F49#FFFFFF#000000##FFFFFF
##540F491.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F274B
Deuteranopia (green-blind)
#283147
Tritanopia (blue-blind)
#59152B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540f49;
/* rgb */ color: rgb(84, 15, 73);
/* oklch */ color: oklch(31.6% 0.121 335.5);
Tailwind
colors: {
  custom: {
    50: '#87567c',
    500: '#540f49',
    950: '#000000',
  },
}
SCSS
$custom: #540f49;
$custom-light: #87567c;
$custom-dark: #000000;
JSON
{
  "hex": "#540f49",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 73
  },
  "hsl": {
    "h": 309.565,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31632,
    "c": 0.12081,
    "h": 335.5
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#540F49
secondary
#318E40
accent
#ED583B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540F49

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

Preview Lab → · Contrast checker → · Palette generator →

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