#5B168A#5B168A

#5B168A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.176 H 306.2°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#5B168A
RGBrgb(91, 22, 138)
HSLhsl(276, 73%, 31%)
HSVhsv(276, 84%, 54%)
CMYKcmyk(34.1%, 84.1%, 0%, 45.9%)
CIE-LABlab(25.66, 49.89, -49.73)
CIE-LCHlch(25.66, 70.44, 315.09°)
OKLaboklab(38.2% 0.1038 -0.1417)
OKLCHoklch(38.2% 0.176 306.2)
XYZxyz(9.1877, 4.6330, 24.4501)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B168A #458A16
analogous
#21168A #5B168A #8A167F
triadic
#5B168A #8A5B16 #168A5B
tetradic
#5B168A #8A2116 #458A16 #167F8A
square
#5B168A #8A2116 #458A16 #167F8A
split-complementary
#5B168A #7F8A16 #168A21
monochromatic
#150520 #380E55 #5B168A #7E1EBF #9D3BE0

Accessibility & contrast

On white

10.90
#5B168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5B168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B168A
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B168A#FFFFFF#000000##FFFFFF
##5B168A1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#523651
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b168a;
/* rgb */ color: rgb(91, 22, 138);
/* oklch */ color: oklch(38.2% 0.176 306.2);
Tailwind
colors: {
  custom: {
    50: '#8f5ead',
    500: '#5b168a',
    950: '#000000',
  },
}
SCSS
$custom: #5b168a;
$custom-light: #8f5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5b168a",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 275.69,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38203,
    "c": 0.1756,
    "h": 306.2
  },
  "luminance": 0.04633
}

Semantic roles & 50–950 ramp

primary
#5B168A
secondary
#72BE3E
accent
#EF3983
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B168A

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

Preview Lab → · Contrast checker → · Palette generator →

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