#54166A#54166A

#54166A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.142 H 315.4°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#54166A
RGBrgb(84, 22, 106)
HSLhsl(284, 66%, 25%)
HSVhsv(284, 79%, 42%)
CMYKcmyk(20.8%, 79.2%, 0%, 58.4%)
CIE-LABlab(21.94, 41.39, -35.44)
CIE-LCHlch(21.94, 54.49, 319.43°)
OKLaboklab(34.55% 0.1013 -0.0999)
OKLCHoklch(34.55% 0.142 315.4)
XYZxyz(6.5442, 3.4995, 13.9636)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54166A #2C6A16
analogous
#2A166A #54166A #6A1656
triadic
#54166A #6A5416 #166A54
tetradic
#54166A #6A2A16 #2C6A16 #16566A
square
#54166A #6A2A16 #2C6A16 #16566A
split-complementary
#54166A #566A16 #166A2A
monochromatic
#140519 #2C0B37 #54166A #7C219D #A42BCF

Accessibility & contrast

On white

12.35
#54166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#54166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54166A
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54166A#FFFFFF#000000##FFFFFF
##54166A1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#133668
Tritanopia (blue-blind)
#52293F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54166a;
/* rgb */ color: rgb(84, 22, 106);
/* oklch */ color: oklch(34.6% 0.142 315.4);
Tailwind
colors: {
  custom: {
    50: '#875b95',
    500: '#54166a',
    950: '#000000',
  },
}
SCSS
$custom: #54166a;
$custom-light: #875b95;
$custom-dark: #000000;
JSON
{
  "hex": "#54166a",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 284.286,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34552,
    "c": 0.14227,
    "h": 315.4
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#54166A
secondary
#56A03B
accent
#E93F6C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54166A

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

Preview Lab → · Contrast checker → · Palette generator →

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