#54167C#54167C

#54167C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.160 H 307.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#54167C
RGBrgb(84, 22, 124)
HSLhsl(276, 70%, 29%)
HSVhsv(276, 82%, 49%)
CMYKcmyk(32.3%, 82.3%, 0%, 51.4%)
CIE-LABlab(23.39, 45.46, -44.68)
CIE-LCHlch(23.39, 63.74, 315.50°)
OKLaboklab(36.02% 0.0974 -0.1271)
OKLCHoklch(36.02% 0.16 307.5)
XYZxyz(7.5804, 3.9140, 19.4210)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54167C #3E7C16
analogous
#21167C #54167C #7C1671
triadic
#54167C #7C5416 #167C54
tetradic
#54167C #7C2116 #3E7C16 #16717C
square
#54167C #7C2116 #3E7C16 #16717C
split-complementary
#54167C #717C16 #167C21
monochromatic
#12051A #310D48 #54167C #771FB0 #9832DB

Accessibility & contrast

On white

11.78
#54167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54167C
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54167C#FFFFFF#000000##FFFFFF
##54167C1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#4D3149
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54167c;
/* rgb */ color: rgb(84, 22, 124);
/* oklch */ color: oklch(36.0% 0.160 307.5);
Tailwind
colors: {
  custom: {
    50: '#895ca3',
    500: '#54167c',
    950: '#000000',
  },
}
SCSS
$custom: #54167c;
$custom-light: #895ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#54167c",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 276.471,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3602,
    "c": 0.1601,
    "h": 307.5
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#54167C
secondary
#6AB13D
accent
#ED3B81
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54167C

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

Preview Lab → · Contrast checker → · Palette generator →

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