#5B168E#5B168E

#5B168E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.179 H 304.8°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5B168E
RGBrgb(91, 22, 142)
HSLhsl(275, 73%, 32%)
HSVhsv(275, 85%, 56%)
CMYKcmyk(35.9%, 84.5%, 0%, 44.3%)
CIE-LABlab(26.01, 50.81, -51.65)
CIE-LCHlch(26.01, 72.45, 314.53°)
OKLaboklab(38.56% 0.1025 -0.1473)
OKLCHoklch(38.56% 0.179 304.8)
XYZxyz(9.4827, 4.7510, 26.0034)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B168E #498E16
analogous
#1F168E #5B168E #8E1685
triadic
#5B168E #8E5B16 #168E5B
tetradic
#5B168E #8E1F16 #498E16 #16858E
square
#5B168E #8E1F16 #498E16 #16858E
split-complementary
#5B168E #858E16 #168E1F
monochromatic
#170624 #390E59 #5B168E #7D1EC3 #9B3DE1

Accessibility & contrast

On white

10.77
#5B168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5B168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B168E
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B168E#FFFFFF#000000##FFFFFF
##5B168E1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#513854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b168e;
/* rgb */ color: rgb(91, 22, 142);
/* oklch */ color: oklch(38.6% 0.179 304.8);
Tailwind
colors: {
  custom: {
    50: '#8f5eb0',
    500: '#5b168e',
    950: '#000000',
  },
}
SCSS
$custom: #5b168e;
$custom-light: #8f5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b168e",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 274.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38555,
    "c": 0.17946,
    "h": 304.8
  },
  "luminance": 0.04751
}

Semantic roles & 50–950 ramp

primary
#5B168E
secondary
#76C13F
accent
#F03886
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B168E

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

Preview Lab → · Contrast checker → · Palette generator →

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