#54166B#54166B

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

Color values

HEX#54166B
RGBrgb(84, 22, 107)
HSLhsl(284, 66%, 25%)
HSVhsv(284, 79%, 42%)
CMYKcmyk(21.5%, 79.4%, 0%, 58%)
CIE-LABlab(22.02, 41.61, -35.97)
CIE-LCHlch(22.02, 55.00, 319.16°)
OKLaboklab(34.63% 0.1011 -0.1015)
OKLCHoklch(34.63% 0.143 314.9)
XYZxyz(6.5965, 3.5204, 14.2391)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54166B #2D6B16
analogous
#2A166B #54166B #6B1657
triadic
#54166B #6B5416 #166B54
tetradic
#54166B #6B2A16 #2D6B16 #16576B
square
#54166B #6B2A16 #2D6B16 #16576B
split-complementary
#54166B #576B16 #166B2A
monochromatic
#140519 #2C0C38 #54166B #7C209E #A42BD1

Accessibility & contrast

On white

12.32
#54166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54166B
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54166B#FFFFFF#000000##FFFFFF
##54166B1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#123669
Tritanopia (blue-blind)
#522940
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54166b;
/* rgb */ color: rgb(84, 22, 107);
/* oklch */ color: oklch(34.6% 0.143 314.9);
Tailwind
colors: {
  custom: {
    50: '#885b96',
    500: '#54166b',
    950: '#000000',
  },
}
SCSS
$custom: #54166b;
$custom-light: #885b96;
$custom-dark: #000000;
JSON
{
  "hex": "#54166b",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 283.765,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3463,
    "c": 0.14325,
    "h": 314.9
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#54166B
secondary
#57A13B
accent
#E93F6D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54166B

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

Preview Lab → · Contrast checker → · Palette generator →

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