#54166C#54166C

#54166C is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.144 H 314.4°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#54166C
RGBrgb(84, 22, 108)
HSLhsl(283, 66%, 25%)
HSVhsv(283, 80%, 42%)
CMYKcmyk(22.2%, 79.6%, 0%, 57.6%)
CIE-LABlab(22.09, 41.83, -36.50)
CIE-LCHlch(22.09, 55.51, 318.89°)
OKLaboklab(34.71% 0.1009 -0.103)
OKLCHoklch(34.71% 0.144 314.4)
XYZxyz(6.6494, 3.5416, 14.5178)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54166C #2E6C16
analogous
#29166C #54166C #6C1659
triadic
#54166C #6C5416 #166C54
tetradic
#54166C #6C2916 #2E6C16 #16596C
square
#54166C #6C2916 #2E6C16 #16596C
split-complementary
#54166C #596C16 #166C29
monochromatic
#140519 #2C0C39 #54166C #7C209F #A32BD2

Accessibility & contrast

On white

12.29
#54166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#54166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54166C
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54166C#FFFFFF#000000##FFFFFF
##54166C1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#10366A
Tritanopia (blue-blind)
#522940
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54166c;
/* rgb */ color: rgb(84, 22, 108);
/* oklch */ color: oklch(34.7% 0.144 314.4);
Tailwind
colors: {
  custom: {
    50: '#885b97',
    500: '#54166c',
    950: '#000000',
  },
}
SCSS
$custom: #54166c;
$custom-light: #885b97;
$custom-dark: #000000;
JSON
{
  "hex": "#54166c",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 283.256,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34707,
    "c": 0.14423,
    "h": 314.4
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#54166C
secondary
#58A23C
accent
#E93F6E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54166C

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

Preview Lab → · Contrast checker → · Palette generator →

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