#5B169E#5B169E

#5B169E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.195 H 299.8°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5B169E
RGBrgb(91, 22, 158)
HSLhsl(270, 76%, 35%)
HSVhsv(270, 86%, 62%)
CMYKcmyk(42.4%, 86.1%, 0%, 38%)
CIE-LABlab(27.48, 54.54, -59.09)
CIE-LCHlch(27.48, 80.42, 312.71°)
OKLaboklab(40.02% 0.097 -0.1691)
OKLCHoklch(40.02% 0.195 299.8)
XYZxyz(10.7713, 5.2665, 32.7902)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B169E #599E16
analogous
#17169E #5B169E #9E169D
triadic
#5B169E #9E5B16 #169E5B
tetradic
#5B169E #9E1716 #599E16 #169D9E
square
#5B169E #9E1716 #599E16 #169D9E
split-complementary
#5B169E #9D9E16 #169E17
monochromatic
#1D0733 #3C0F68 #5B169E #7A1DD4 #9849E6

Accessibility & contrast

On white

10.23
#5B169E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5B169E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B169E
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B169E#FFFFFF#000000##FFFFFF
##5B169E1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4B3F5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b169e;
/* rgb */ color: rgb(91, 22, 158);
/* oklch */ color: oklch(40.0% 0.195 299.8);
Tailwind
colors: {
  custom: {
    50: '#915fbc',
    500: '#5b169e',
    950: '#000000',
  },
}
SCSS
$custom: #5b169e;
$custom-light: #915fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b169e",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 158
  },
  "hsl": {
    "h": 270.441,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40017,
    "c": 0.19498,
    "h": 299.8
  },
  "luminance": 0.05267
}

Semantic roles & 50–950 ramp

primary
#5B169E
secondary
#87C749
accent
#F23693
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5B169E

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

Preview Lab → · Contrast checker → · Palette generator →

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