#54168E#54168E

#54168E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.178 H 301.0°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#54168E
RGBrgb(84, 22, 142)
HSLhsl(271, 73%, 32%)
HSVhsv(271, 85%, 56%)
CMYKcmyk(40.8%, 84.5%, 0%, 44.3%)
CIE-LABlab(24.99, 49.73, -53.37)
CIE-LCHlch(24.99, 72.95, 312.98°)
OKLaboklab(37.63% 0.0918 -0.1526)
OKLCHoklch(37.63% 0.178 301)
XYZxyz(8.8243, 4.4116, 25.9726)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54168E #508E16
analogous
#18168E #54168E #8E168C
triadic
#54168E #8E5416 #168E54
tetradic
#54168E #8E1816 #508E16 #168C8E
square
#54168E #8E1816 #508E16 #168C8E
split-complementary
#54168E #8C8E16 #168E18
monochromatic
#150624 #350E59 #54168E #731EC3 #923DE1

Accessibility & contrast

On white

11.16
#54168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54168E
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54168E#FFFFFF#000000##FFFFFF
##54168E1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#473954
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54168e;
/* rgb */ color: rgb(84, 22, 142);
/* oklch */ color: oklch(37.6% 0.178 301.0);
Tailwind
colors: {
  custom: {
    50: '#8b5db0',
    500: '#54168e',
    950: '#000000',
  },
}
SCSS
$custom: #54168e;
$custom-light: #8b5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#54168e",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 271,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37628,
    "c": 0.1781,
    "h": 301
  },
  "luminance": 0.04412
}

Semantic roles & 50–950 ramp

primary
#54168E
secondary
#7EC13F
accent
#F03891
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #54168E

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

Preview Lab → · Contrast checker → · Palette generator →

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