#54168C#54168C

#54168C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.176 H 301.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#54168C
RGBrgb(84, 22, 140)
HSLhsl(272, 73%, 32%)
HSVhsv(272, 84%, 55%)
CMYKcmyk(40%, 84.3%, 0%, 45.1%)
CIE-LABlab(24.80, 49.25, -52.43)
CIE-LCHlch(24.80, 71.93, 313.21°)
OKLaboklab(37.44% 0.0925 -0.1498)
OKLCHoklch(37.44% 0.176 301.7)
XYZxyz(8.6755, 4.3520, 25.1888)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54168C #4E8C16
analogous
#19168C #54168C #8C1689
triadic
#54168C #8C5416 #168C54
tetradic
#54168C #8C1916 #4E8C16 #16898C
square
#54168C #8C1916 #4E8C16 #16898C
split-complementary
#54168C #898C16 #168C19
monochromatic
#150522 #340E57 #54168C #741EC1 #923CE0

Accessibility & contrast

On white

11.23
#54168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#54168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54168C
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54168C#FFFFFF#000000##FFFFFF
##54168C1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54168c;
/* rgb */ color: rgb(84, 22, 140);
/* oklch */ color: oklch(37.4% 0.176 301.7);
Tailwind
colors: {
  custom: {
    50: '#8a5daf',
    500: '#54168c',
    950: '#000000',
  },
}
SCSS
$custom: #54168c;
$custom-light: #8a5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#54168c",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 271.525,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37444,
    "c": 0.17609,
    "h": 301.7
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#54168C
secondary
#7CC03E
accent
#F0388F
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #54168C

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

Preview Lab → · Contrast checker → · Palette generator →

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