#54167B#54167B

#54167B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.159 H 307.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#54167B
RGBrgb(84, 22, 123)
HSLhsl(277, 70%, 28%)
HSVhsv(277, 82%, 48%)
CMYKcmyk(31.7%, 82.1%, 0%, 51.8%)
CIE-LABlab(23.30, 45.23, -44.18)
CIE-LCHlch(23.30, 63.22, 315.67°)
OKLaboklab(35.93% 0.0977 -0.1256)
OKLCHoklch(35.93% 0.159 307.9)
XYZxyz(7.5175, 3.8888, 19.0896)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54167B #3D7B16
analogous
#22167B #54167B #7B166F
triadic
#54167B #7B5416 #167B54
tetradic
#54167B #7B2216 #3D7B16 #166F7B
square
#54167B #7B2216 #3D7B16 #166F7B
split-complementary
#54167B #6F7B16 #167B22
monochromatic
#12051A #310D47 #54167B #771FAF #9931DA

Accessibility & contrast

On white

11.81
#54167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#54167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54167B
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54167B#FFFFFF#000000##FFFFFF
##54167B1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#4E3049
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54167b;
/* rgb */ color: rgb(84, 22, 123);
/* oklch */ color: oklch(35.9% 0.159 307.9);
Tailwind
colors: {
  custom: {
    50: '#895ca2',
    500: '#54167b',
    950: '#000000',
  },
}
SCSS
$custom: #54167b;
$custom-light: #895ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#54167b",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 276.832,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35934,
    "c": 0.1591,
    "h": 307.9
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#54167B
secondary
#69B03D
accent
#EC3B80
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54167B

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

Preview Lab → · Contrast checker → · Palette generator →

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