#54167D#54167D

#54167D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.161 H 307.1°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#54167D
RGBrgb(84, 22, 125)
HSLhsl(276, 70%, 29%)
HSVhsv(276, 82%, 49%)
CMYKcmyk(32.8%, 82.4%, 0%, 51%)
CIE-LABlab(23.47, 45.69, -45.17)
CIE-LCHlch(23.47, 64.25, 315.33°)
OKLaboklab(36.11% 0.0971 -0.1285)
OKLCHoklch(36.11% 0.161 307.1)
XYZxyz(7.6439, 3.9394, 19.7558)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54167D #3F7D16
analogous
#21167D #54167D #7D1673
triadic
#54167D #7D5416 #167D54
tetradic
#54167D #7D2116 #3F7D16 #16737D
square
#54167D #7D2116 #3F7D16 #16737D
split-complementary
#54167D #737D16 #167D21
monochromatic
#11051A #310D49 #54167D #771FB1 #9832DB

Accessibility & contrast

On white

11.75
#54167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#54167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54167D
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54167D#FFFFFF#000000##FFFFFF
##54167D1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#4D314A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54167d;
/* rgb */ color: rgb(84, 22, 125);
/* oklch */ color: oklch(36.1% 0.161 307.1);
Tailwind
colors: {
  custom: {
    50: '#895ca3',
    500: '#54167d',
    950: '#000000',
  },
}
SCSS
$custom: #54167d;
$custom-light: #895ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#54167d",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 276.117,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36106,
    "c": 0.1611,
    "h": 307.1
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#54167D
secondary
#6BB23D
accent
#ED3B82
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54167D

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

Preview Lab → · Contrast checker → · Palette generator →

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