#54167A#54167A

#54167A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.158 H 308.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#54167A
RGBrgb(84, 22, 122)
HSLhsl(277, 69%, 28%)
HSVhsv(277, 82%, 48%)
CMYKcmyk(31.1%, 82%, 0%, 52.2%)
CIE-LABlab(23.22, 45.00, -43.68)
CIE-LCHlch(23.22, 62.71, 315.85°)
OKLaboklab(35.85% 0.0979 -0.1241)
OKLCHoklch(35.85% 0.158 308.3)
XYZxyz(7.4552, 3.8639, 18.7616)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54167A #3C7A16
analogous
#22167A #54167A #7A166E
triadic
#54167A #7A5416 #167A54
tetradic
#54167A #7A2216 #3C7A16 #166E7A
square
#54167A #7A2216 #3C7A16 #166E7A
split-complementary
#54167A #6E7A16 #167A22
monochromatic
#12051A #300D46 #54167A #781FAE #9931DA

Accessibility & contrast

On white

11.85
#54167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#54167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54167A
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54167A#FFFFFF#000000##FFFFFF
##54167A1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#4E3048
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54167a;
/* rgb */ color: rgb(84, 22, 122);
/* oklch */ color: oklch(35.8% 0.158 308.3);
Tailwind
colors: {
  custom: {
    50: '#895ca1',
    500: '#54167a',
    950: '#000000',
  },
}
SCSS
$custom: #54167a;
$custom-light: #895ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#54167a",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 277.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35849,
    "c": 0.1581,
    "h": 308.3
  },
  "luminance": 0.03864
}

Semantic roles & 50–950 ramp

primary
#54167A
secondary
#68AF3D
accent
#EC3C7F
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54167A

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

Preview Lab → · Contrast checker → · Palette generator →

#54167A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva