#54168B#54168B

#54168B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.175 H 302.0°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#54168B
RGBrgb(84, 22, 139)
HSLhsl(272, 73%, 32%)
HSVhsv(272, 84%, 55%)
CMYKcmyk(39.6%, 84.2%, 0%, 45.5%)
CIE-LABlab(24.71, 49.01, -51.95)
CIE-LCHlch(24.71, 71.42, 313.33°)
OKLaboklab(37.35% 0.0929 -0.1484)
OKLCHoklch(37.35% 0.175 302)
XYZxyz(8.6021, 4.3227, 24.8023)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54168B #4D8B16
analogous
#1A168B #54168B #8B1688
triadic
#54168B #8B5416 #168B54
tetradic
#54168B #8B1A16 #4D8B16 #16888B
square
#54168B #8B1A16 #4D8B16 #16888B
split-complementary
#54168B #888B16 #168B1A
monochromatic
#140521 #340E56 #54168B #741EC0 #933BE0

Accessibility & contrast

On white

11.26
#54168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#54168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54168B
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54168B#FFFFFF#000000##FFFFFF
##54168B1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#483752
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54168b;
/* rgb */ color: rgb(84, 22, 139);
/* oklch */ color: oklch(37.4% 0.175 302.0);
Tailwind
colors: {
  custom: {
    50: '#8a5dae',
    500: '#54168b',
    950: '#000000',
  },
}
SCSS
$custom: #54168b;
$custom-light: #8a5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#54168b",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 271.795,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37352,
    "c": 0.1751,
    "h": 302
  },
  "luminance": 0.04323
}

Semantic roles & 50–950 ramp

primary
#54168B
secondary
#7BBF3E
accent
#EF388E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #54168B

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

Preview Lab → · Contrast checker → · Palette generator →

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