#540F5E#540F5E

#540F5E is a dark, vivid purple. Relative luminance 0.030; OKLCH L 33.0% C 0.139 H 322.2°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#540F5E
RGBrgb(84, 15, 94)
HSLhsl(292, 72%, 21%)
HSVhsv(292, 84%, 37%)
CMYKcmyk(10.6%, 84%, 0%, 63.1%)
CIE-LABlab(20.18, 41.42, -30.38)
CIE-LCHlch(20.18, 51.37, 323.74°)
OKLaboklab(33.03% 0.1095 -0.0851)
OKLCHoklch(33.03% 0.139 322.2)
XYZxyz(5.8471, 3.0350, 10.8653)
Luminance0.0303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F5E #195E0F
analogous
#2D0F5E #540F5E #5E0F41
triadic
#540F5E #5E540F #0F5E54
tetradic
#540F5E #5E2D0F #195E0F #0F415E
square
#540F5E #5E2D0F #195E0F #0F415E
split-complementary
#540F5E #415E0F #0F5E2D
monochromatic
#18041A #250729 #540F5E #831793 #B220C8

Accessibility & contrast

On white

13.07
#540F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#540F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F5E
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F5E#FFFFFF#000000##FFFFFF
##540F5E1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#1B335C
Tritanopia (blue-blind)
#551F37
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #540f5e;
/* rgb */ color: rgb(84, 15, 94);
/* oklch */ color: oklch(33.0% 0.139 322.2);
Tailwind
colors: {
  custom: {
    50: '#87578c',
    500: '#540f5e',
    950: '#000000',
  },
}
SCSS
$custom: #540f5e;
$custom-light: #87578c;
$custom-dark: #000000;
JSON
{
  "hex": "#540f5e",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 292.405,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33028,
    "c": 0.13868,
    "h": 322.2
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#540F5E
secondary
#3E9731
accent
#EF3950
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #540F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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