#5B167E#5B167E

#5B167E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.164 H 310.7°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#5B167E
RGBrgb(91, 22, 126)
HSLhsl(280, 70%, 29%)
HSVhsv(280, 83%, 49%)
CMYKcmyk(27.8%, 82.5%, 0%, 50.6%)
CIE-LABlab(24.65, 47.19, -43.83)
CIE-LCHlch(24.65, 64.41, 317.11°)
OKLaboklab(37.19% 0.107 -0.1243)
OKLCHoklch(37.19% 0.164 310.7)
XYZxyz(8.3665, 4.3045, 20.1247)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B167E #397E16
analogous
#27167E #5B167E #7E166D
triadic
#5B167E #7E5B16 #167E5B
tetradic
#5B167E #7E2716 #397E16 #166D7E
square
#5B167E #7E2716 #397E16 #166D7E
split-complementary
#5B167E #6D7E16 #167E27
monochromatic
#13051A #350D4A #5B167E #811FB2 #A333DB

Accessibility & contrast

On white

11.29
#5B167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5B167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B167E
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B167E#FFFFFF#000000##FFFFFF
##5B167E1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#56304B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b167e;
/* rgb */ color: rgb(91, 22, 126);
/* oklch */ color: oklch(37.2% 0.164 310.7);
Tailwind
colors: {
  custom: {
    50: '#8e5da4',
    500: '#5b167e',
    950: '#000000',
  },
}
SCSS
$custom: #5b167e;
$custom-light: #8e5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b167e",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 279.808,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37185,
    "c": 0.16407,
    "h": 310.7
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

primary
#5B167E
secondary
#65B33D
accent
#ED3B77
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B167E

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

Preview Lab → · Contrast checker → · Palette generator →

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