#54165C#54165C

#54165C is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.129 H 322.9°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#54165C
RGBrgb(84, 22, 92)
HSLhsl(293, 61%, 22%)
HSVhsv(293, 76%, 36%)
CMYKcmyk(8.7%, 76.1%, 0%, 63.9%)
CIE-LABlab(20.95, 38.43, -27.83)
CIE-LCHlch(20.95, 47.44, 324.09°)
OKLaboklab(33.53% 0.1027 -0.0776)
OKLCHoklch(33.53% 0.129 322.9)
XYZxyz(5.8746, 3.2317, 10.4375)
Luminance0.0323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54165C #1E5C16
analogous
#31165C #54165C #5C1641
triadic
#54165C #5C5416 #165C54
tetradic
#54165C #5C3116 #1E5C16 #16415C
square
#54165C #5C3116 #1E5C16 #16415C
split-complementary
#54165C #415C16 #165C31
monochromatic
#170619 #270A2B #54165C #81228D #AE2EBF

Accessibility & contrast

On white

12.76
#54165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#54165C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54165C
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54165C#FFFFFF#000000##FFFFFF
##54165C1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54165c;
/* rgb */ color: rgb(84, 22, 92);
/* oklch */ color: oklch(33.5% 0.129 322.9);
Tailwind
colors: {
  custom: {
    50: '#875a8a',
    500: '#54165c',
    950: '#000000',
  },
}
SCSS
$custom: #54165c;
$custom-light: #875a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#54165c",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 293.143,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33528,
    "c": 0.12873,
    "h": 322.9
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#54165C
secondary
#45933B
accent
#E54356
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #54165C

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

Preview Lab → · Contrast checker → · Palette generator →

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