#54155C#54155C

#54155C is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.130 H 323.0°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#54155C
RGBrgb(84, 21, 92)
HSLhsl(293, 63%, 22%)
HSVhsv(293, 77%, 36%)
CMYKcmyk(8.7%, 77.2%, 0%, 63.9%)
CIE-LABlab(20.81, 38.84, -28.06)
CIE-LCHlch(20.81, 47.91, 324.15°)
OKLaboklab(33.43% 0.1038 -0.0783)
OKLCHoklch(33.43% 0.13 323)
XYZxyz(5.8559, 3.1942, 10.4312)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54155C #1D5C15
analogous
#30155C #54155C #5C1541
triadic
#54155C #5C5415 #155C54
tetradic
#54155C #5C3015 #1D5C15 #15415C
square
#54155C #5C3015 #1D5C15 #15415C
split-complementary
#54155C #415C15 #155C30
monochromatic
#170619 #270A2A #54155C #81208E #AF2CC0

Accessibility & contrast

On white

12.81
#54155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#54155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54155C
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54155C#FFFFFF#000000##FFFFFF
##54155C1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#20345A
Tritanopia (blue-blind)
#552237
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #54155c;
/* rgb */ color: rgb(84, 21, 92);
/* oklch */ color: oklch(33.4% 0.130 323.0);
Tailwind
colors: {
  custom: {
    50: '#875a8a',
    500: '#54155c',
    950: '#000000',
  },
}
SCSS
$custom: #54155c;
$custom-light: #875a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#54155c",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 293.239,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33426,
    "c": 0.13002,
    "h": 323
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#54155C
secondary
#449339
accent
#E64254
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #54155C

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

Preview Lab → · Contrast checker → · Palette generator →

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