#5B167A#5B167A

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

Color values

HEX#5B167A
RGBrgb(91, 22, 122)
HSLhsl(281, 69%, 28%)
HSVhsv(281, 82%, 48%)
CMYKcmyk(25.4%, 82%, 0%, 52.2%)
CIE-LABlab(24.33, 46.31, -41.81)
CIE-LCHlch(24.33, 62.39, 317.92°)
OKLaboklab(36.86% 0.108 -0.1184)
OKLCHoklch(36.86% 0.16 312.4)
XYZxyz(8.1135, 4.2033, 18.7925)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B167A #357A16
analogous
#29167A #5B167A #7A1667
triadic
#5B167A #7A5B16 #167A5B
tetradic
#5B167A #7A2916 #357A16 #16677A
square
#5B167A #7A2916 #357A16 #16677A
split-complementary
#5B167A #677A16 #167A29
monochromatic
#13051A #340D46 #5B167A #821FAE #A531DA

Accessibility & contrast

On white

11.41
#5B167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5B167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B167A
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B167A#FFFFFF#000000##FFFFFF
##5B167A1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#033B78
Tritanopia (blue-blind)
#572F48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b167a;
/* rgb */ color: rgb(91, 22, 122);
/* oklch */ color: oklch(36.9% 0.160 312.4);
Tailwind
colors: {
  custom: {
    50: '#8d5da1',
    500: '#5b167a',
    950: '#000000',
  },
}
SCSS
$custom: #5b167a;
$custom-light: #8d5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b167a",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 281.4,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3686,
    "c": 0.16024,
    "h": 312.4
  },
  "luminance": 0.04203
}

Semantic roles & 50–950 ramp

primary
#5B167A
secondary
#60AF3D
accent
#EC3C72
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B167A

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

Preview Lab → · Contrast checker → · Palette generator →

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