#5B167C#5B167C

#5B167C is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.162 H 311.5°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#5B167C
RGBrgb(91, 22, 124)
HSLhsl(281, 70%, 29%)
HSVhsv(281, 82%, 49%)
CMYKcmyk(26.6%, 82.3%, 0%, 51.4%)
CIE-LABlab(24.49, 46.75, -42.83)
CIE-LCHlch(24.49, 63.40, 317.50°)
OKLaboklab(37.02% 0.1075 -0.1214)
OKLCHoklch(37.02% 0.162 311.5)
XYZxyz(8.2387, 4.2534, 19.4519)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B167C #377C16
analogous
#28167C #5B167C #7C166A
triadic
#5B167C #7C5B16 #167C5B
tetradic
#5B167C #7C2816 #377C16 #166A7C
square
#5B167C #7C2816 #377C16 #166A7C
split-complementary
#5B167C #6A7C16 #167C28
monochromatic
#13051A #350D48 #5B167C #811FB0 #A432DB

Accessibility & contrast

On white

11.35
#5B167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B167C
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B167C#FFFFFF#000000##FFFFFF
##5B167C1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#573049
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b167c;
/* rgb */ color: rgb(91, 22, 124);
/* oklch */ color: oklch(37.0% 0.162 311.5);
Tailwind
colors: {
  custom: {
    50: '#8e5da3',
    500: '#5b167c',
    950: '#000000',
  },
}
SCSS
$custom: #5b167c;
$custom-light: #8e5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b167c",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 280.588,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37022,
    "c": 0.16215,
    "h": 311.5
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#5B167C
secondary
#62B13D
accent
#ED3B75
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B167C

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

Preview Lab → · Contrast checker → · Palette generator →

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