#54167F#54167F

#54167F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.163 H 306.3°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#54167F
RGBrgb(84, 22, 127)
HSLhsl(275, 70%, 29%)
HSVhsv(275, 83%, 50%)
CMYKcmyk(33.9%, 82.7%, 0%, 50.2%)
CIE-LABlab(23.64, 46.16, -46.16)
CIE-LCHlch(23.64, 65.28, 315.00°)
OKLaboklab(36.28% 0.0966 -0.1314)
OKLCHoklch(36.28% 0.163 306.3)
XYZxyz(7.7730, 3.9910, 20.4354)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54167F #417F16
analogous
#20167F #54167F #7F1676
triadic
#54167F #7F5416 #167F54
tetradic
#54167F #7F2016 #417F16 #16767F
square
#54167F #7F2016 #417F16 #16767F
split-complementary
#54167F #767F16 #167F20
monochromatic
#11051A #310D4B #54167F #771FB3 #9734DC

Accessibility & contrast

On white

11.68
#54167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#54167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54167F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54167F#FFFFFF#000000##FFFFFF
##54167F1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#4C324B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54167f;
/* rgb */ color: rgb(84, 22, 127);
/* oklch */ color: oklch(36.3% 0.163 306.3);
Tailwind
colors: {
  custom: {
    50: '#895ca5',
    500: '#54167f',
    950: '#000000',
  },
}
SCSS
$custom: #54167f;
$custom-light: #895ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#54167f",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 275.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36279,
    "c": 0.16309,
    "h": 306.3
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#54167F
secondary
#6EB43D
accent
#ED3B84
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54167F

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

Preview Lab → · Contrast checker → · Palette generator →

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