#54166F#54166F

#54166F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.147 H 313.0°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#54166F
RGBrgb(84, 22, 111)
HSLhsl(282, 67%, 26%)
HSVhsv(282, 80%, 44%)
CMYKcmyk(24.3%, 80.2%, 0%, 56.5%)
CIE-LABlab(22.33, 42.49, -38.06)
CIE-LCHlch(22.33, 57.05, 318.15°)
OKLaboklab(34.94% 0.1004 -0.1076)
OKLCHoklch(34.94% 0.147 313)
XYZxyz(6.8118, 3.6065, 15.3731)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54166F #316F16
analogous
#27166F #54166F #6F165D
triadic
#54166F #6F5416 #166F54
tetradic
#54166F #6F2716 #316F16 #165D6F
square
#54166F #6F2716 #316F16 #165D6F
split-complementary
#54166F #5D6F16 #166F27
monochromatic
#13051A #2D0C3C #54166F #7B20A2 #A12BD5

Accessibility & contrast

On white

12.20
#54166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#54166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54166F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54166F#FFFFFF#000000##FFFFFF
##54166F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#0B376D
Tritanopia (blue-blind)
#512B42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54166f;
/* rgb */ color: rgb(84, 22, 111);
/* oklch */ color: oklch(34.9% 0.147 313.0);
Tailwind
colors: {
  custom: {
    50: '#885b99',
    500: '#54166f',
    950: '#000000',
  },
}
SCSS
$custom: #54166f;
$custom-light: #885b99;
$custom-dark: #000000;
JSON
{
  "hex": "#54166f",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 281.798,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34944,
    "c": 0.14719,
    "h": 313
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#54166F
secondary
#5CA53C
accent
#EA3E72
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #54166F

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

Preview Lab → · Contrast checker → · Palette generator →

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