#54168F#54168F

#54168F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.7% C 0.179 H 300.7°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#54168F
RGBrgb(84, 22, 143)
HSLhsl(271, 73%, 32%)
HSVhsv(271, 85%, 56%)
CMYKcmyk(41.3%, 84.6%, 0%, 43.9%)
CIE-LABlab(25.08, 49.97, -53.84)
CIE-LCHlch(25.08, 73.46, 312.87°)
OKLaboklab(37.72% 0.0915 -0.154)
OKLCHoklch(37.72% 0.179 300.7)
XYZxyz(8.8998, 4.4417, 26.3697)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54168F #518F16
analogous
#18168F #54168F #8F168D
triadic
#54168F #8F5416 #168F54
tetradic
#54168F #8F1816 #518F16 #168D8F
square
#54168F #8F1816 #518F16 #168D8F
split-complementary
#54168F #8D8F16 #168F18
monochromatic
#160625 #350E5A #54168F #731EC4 #923EE1

Accessibility & contrast

On white

11.12
#54168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#54168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54168F
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54168F#FFFFFF#000000##FFFFFF
##54168F1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#463954
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54168f;
/* rgb */ color: rgb(84, 22, 143);
/* oklch */ color: oklch(37.7% 0.179 300.7);
Tailwind
colors: {
  custom: {
    50: '#8b5db1',
    500: '#54168f',
    950: '#000000',
  },
}
SCSS
$custom: #54168f;
$custom-light: #8b5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#54168f",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 270.744,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37721,
    "c": 0.17911,
    "h": 300.7
  },
  "luminance": 0.04442
}

Semantic roles & 50–950 ramp

primary
#54168F
secondary
#7FC13F
accent
#F03892
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #54168F

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

Preview Lab → · Contrast checker → · Palette generator →

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