#5B167D#5B167D

#5B167D is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.163 H 311.1°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#5B167D
RGBrgb(91, 22, 125)
HSLhsl(280, 70%, 29%)
HSVhsv(280, 82%, 49%)
CMYKcmyk(27.2%, 82.4%, 0%, 51%)
CIE-LABlab(24.57, 46.97, -43.33)
CIE-LCHlch(24.57, 63.90, 317.31°)
OKLaboklab(37.1% 0.1073 -0.1229)
OKLCHoklch(37.1% 0.163 311.1)
XYZxyz(8.3023, 4.2788, 19.7866)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B167D #387D16
analogous
#28167D #5B167D #7D166C
triadic
#5B167D #7D5B16 #167D5B
tetradic
#5B167D #7D2816 #387D16 #166C7D
square
#5B167D #7D2816 #387D16 #166C7D
split-complementary
#5B167D #6C7D16 #167D28
monochromatic
#13051A #350D49 #5B167D #811FB1 #A332DB

Accessibility & contrast

On white

11.32
#5B167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B167D
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B167D#FFFFFF#000000##FFFFFF
##5B167D1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#56304A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b167d;
/* rgb */ color: rgb(91, 22, 125);
/* oklch */ color: oklch(37.1% 0.163 311.1);
Tailwind
colors: {
  custom: {
    50: '#8e5da3',
    500: '#5b167d',
    950: '#000000',
  },
}
SCSS
$custom: #5b167d;
$custom-light: #8e5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b167d",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 280.194,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37103,
    "c": 0.16311,
    "h": 311.1
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#5B167D
secondary
#64B23D
accent
#ED3B76
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B167D

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

Preview Lab → · Contrast checker → · Palette generator →

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