#5B167B#5B167B

#5B167B is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.161 H 311.9°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#5B167B
RGBrgb(91, 22, 123)
HSLhsl(281, 70%, 28%)
HSVhsv(281, 82%, 48%)
CMYKcmyk(26%, 82.1%, 0%, 51.8%)
CIE-LABlab(24.41, 46.53, -42.32)
CIE-LCHlch(24.41, 62.89, 317.71°)
OKLaboklab(36.94% 0.1078 -0.1199)
OKLCHoklch(36.94% 0.161 311.9)
XYZxyz(8.1758, 4.2283, 19.1205)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B167B #367B16
analogous
#28167B #5B167B #7B1668
triadic
#5B167B #7B5B16 #167B5B
tetradic
#5B167B #7B2816 #367B16 #16687B
square
#5B167B #7B2816 #367B16 #16687B
split-complementary
#5B167B #687B16 #167B28
monochromatic
#13051A #350D47 #5B167B #811FAF #A531DA

Accessibility & contrast

On white

11.38
#5B167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5B167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B167B
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B167B#FFFFFF#000000##FFFFFF
##5B167B1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#013B79
Tritanopia (blue-blind)
#572F49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b167b;
/* rgb */ color: rgb(91, 22, 123);
/* oklch */ color: oklch(36.9% 0.161 311.9);
Tailwind
colors: {
  custom: {
    50: '#8e5da2',
    500: '#5b167b',
    950: '#000000',
  },
}
SCSS
$custom: #5b167b;
$custom-light: #8e5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b167b",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 280.99,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3694,
    "c": 0.1612,
    "h": 311.9
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#5B167B
secondary
#61B03D
accent
#EC3B73
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B167B

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

Preview Lab → · Contrast checker → · Palette generator →

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