#54168D#54168D

#54168D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.177 H 301.4°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#54168D
RGBrgb(84, 22, 141)
HSLhsl(271, 73%, 32%)
HSVhsv(271, 84%, 55%)
CMYKcmyk(40.4%, 84.4%, 0%, 44.7%)
CIE-LABlab(24.90, 49.49, -52.90)
CIE-LCHlch(24.90, 72.44, 313.09°)
OKLaboklab(37.54% 0.0922 -0.1512)
OKLCHoklch(37.54% 0.177 301.4)
XYZxyz(8.7496, 4.3817, 25.5789)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54168D #4F8D16
analogous
#19168D #54168D #8D168A
triadic
#54168D #8D5416 #168D54
tetradic
#54168D #8D1916 #4F8D16 #168A8D
square
#54168D #8D1916 #4F8D16 #168A8D
split-complementary
#54168D #8A8D16 #168D19
monochromatic
#150523 #340E58 #54168D #741EC2 #923DE1

Accessibility & contrast

On white

11.19
#54168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#54168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54168D
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54168D#FFFFFF#000000##FFFFFF
##54168D1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#473853
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54168d;
/* rgb */ color: rgb(84, 22, 141);
/* oklch */ color: oklch(37.5% 0.177 301.4);
Tailwind
colors: {
  custom: {
    50: '#8a5daf',
    500: '#54168d',
    950: '#000000',
  },
}
SCSS
$custom: #54168d;
$custom-light: #8a5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#54168d",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 271.261,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37536,
    "c": 0.1771,
    "h": 301.4
  },
  "luminance": 0.04382
}

Semantic roles & 50–950 ramp

primary
#54168D
secondary
#7DC13E
accent
#F03890
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #54168D

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

Preview Lab → · Contrast checker → · Palette generator →

#54168D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva