#54155F#54155F

#54155F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.133 H 321.2°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#54155F
RGBrgb(84, 21, 95)
HSLhsl(291, 64%, 23%)
HSVhsv(291, 78%, 37%)
CMYKcmyk(11.6%, 77.9%, 0%, 62.7%)
CIE-LABlab(21.01, 39.45, -29.72)
CIE-LCHlch(21.01, 49.39, 323.00°)
OKLaboklab(33.64% 0.1036 -0.0832)
OKLCHoklch(33.64% 0.133 321.2)
XYZxyz(5.9896, 3.2477, 11.1356)
Luminance0.0325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54155F #205F15
analogous
#2F155F #54155F #5F1545
triadic
#54155F #5F5415 #155F54
tetradic
#54155F #5F2F15 #205F15 #15455F
square
#54155F #5F2F15 #205F15 #15455F
split-complementary
#54155F #455F15 #155F2F
monochromatic
#160619 #280A2D #54155F #802091 #AD2BC3

Accessibility & contrast

On white

12.73
#54155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#54155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54155F
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54155F#FFFFFF#000000##FFFFFF
##54155F1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#1E355D
Tritanopia (blue-blind)
#552339
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #54155f;
/* rgb */ color: rgb(84, 21, 95);
/* oklch */ color: oklch(33.6% 0.133 321.2);
Tailwind
colors: {
  custom: {
    50: '#875a8d',
    500: '#54155f',
    950: '#000000',
  },
}
SCSS
$custom: #54155f;
$custom-light: #875a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#54155f",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 291.081,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33637,
    "c": 0.13285,
    "h": 321.2
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

primary
#54155F
secondary
#47963A
accent
#E7415A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #54155F

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

Preview Lab → · Contrast checker → · Palette generator →

#54155F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva