#5B168B#5B168B

#5B168B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.177 H 305.9°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#5B168B
RGBrgb(91, 22, 139)
HSLhsl(275, 73%, 32%)
HSVhsv(275, 84%, 55%)
CMYKcmyk(34.5%, 84.2%, 0%, 45.5%)
CIE-LABlab(25.75, 50.12, -50.21)
CIE-LCHlch(25.75, 70.95, 314.95°)
OKLaboklab(38.29% 0.1035 -0.1431)
OKLCHoklch(38.29% 0.177 305.9)
XYZxyz(9.2605, 4.6621, 24.8331)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B168B #468B16
analogous
#21168B #5B168B #8B1681
triadic
#5B168B #8B5B16 #168B5B
tetradic
#5B168B #8B2116 #468B16 #16818B
square
#5B168B #8B2116 #468B16 #16818B
split-complementary
#5B168B #818B16 #168B21
monochromatic
#160521 #380E56 #5B168B #7E1EC0 #9C3BE0

Accessibility & contrast

On white

10.87
#5B168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B168B
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B168B#FFFFFF#000000##FFFFFF
##5B168B1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#523652
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b168b;
/* rgb */ color: rgb(91, 22, 139);
/* oklch */ color: oklch(38.3% 0.177 305.9);
Tailwind
colors: {
  custom: {
    50: '#8f5eae',
    500: '#5b168b',
    950: '#000000',
  },
}
SCSS
$custom: #5b168b;
$custom-light: #8f5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b168b",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 275.385,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3829,
    "c": 0.17656,
    "h": 305.9
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

primary
#5B168B
secondary
#73BF3E
accent
#EF3883
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B168B

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

Preview Lab → · Contrast checker → · Palette generator →

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