#5B167F#5B167F

#5B167F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.165 H 310.3°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#5B167F
RGBrgb(91, 22, 127)
HSLhsl(279, 70%, 29%)
HSVhsv(279, 83%, 50%)
CMYKcmyk(28.3%, 82.7%, 0%, 50.2%)
CIE-LABlab(24.74, 47.41, -44.33)
CIE-LCHlch(24.74, 64.91, 316.92°)
OKLaboklab(37.27% 0.1068 -0.1258)
OKLCHoklch(37.27% 0.165 310.3)
XYZxyz(8.4313, 4.3305, 20.4663)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B167F #3A7F16
analogous
#27167F #5B167F #7F166F
triadic
#5B167F #7F5B16 #167F5B
tetradic
#5B167F #7F2716 #3A7F16 #166F7F
square
#5B167F #7F2716 #3A7F16 #166F7F
split-complementary
#5B167F #6F7F16 #167F27
monochromatic
#13051A #360D4B #5B167F #801FB3 #A234DC

Accessibility & contrast

On white

11.25
#5B167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B167F
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B167F#FFFFFF#000000##FFFFFF
##5B167F1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#56314B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b167f;
/* rgb */ color: rgb(91, 22, 127);
/* oklch */ color: oklch(37.3% 0.165 310.3);
Tailwind
colors: {
  custom: {
    50: '#8e5da5',
    500: '#5b167f',
    950: '#000000',
  },
}
SCSS
$custom: #5b167f;
$custom-light: #8e5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b167f",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 279.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37268,
    "c": 0.16503,
    "h": 310.3
  },
  "luminance": 0.0433
}

Semantic roles & 50–950 ramp

primary
#5B167F
secondary
#66B43D
accent
#ED3B78
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B167F

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

Preview Lab → · Contrast checker → · Palette generator →

#5B167F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva