#5B1988#5B1988

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

Color values

HEX#5B1988
RGBrgb(91, 25, 136)
HSLhsl(276, 69%, 32%)
HSVhsv(276, 82%, 53%)
CMYKcmyk(33.1%, 81.6%, 0%, 46.7%)
CIE-LABlab(25.85, 48.38, -48.17)
CIE-LCHlch(25.85, 68.27, 315.12°)
OKLaboklab(38.28% 0.102 -0.1371)
OKLCHoklch(38.28% 0.171 306.6)
XYZxyz(9.1050, 4.6971, 23.7147)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1988 #468819
analogous
#241988 #5B1988 #88197E
triadic
#5B1988 #885B19 #19885B
tetradic
#5B1988 #882419 #468819 #197E88
square
#5B1988 #882419 #468819 #197E88
split-complementary
#5B1988 #7E8819 #198824
monochromatic
#160621 #380F54 #5B1988 #7E23BC #9C40DC

Accessibility & contrast

On white

10.83
#5B1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5B1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1988
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1988#FFFFFF#000000##FFFFFF
##5B19881.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#533651
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b1988;
/* rgb */ color: rgb(91, 25, 136);
/* oklch */ color: oklch(38.3% 0.171 306.6);
Tailwind
colors: {
  custom: {
    50: '#8e5fac',
    500: '#5b1988',
    950: '#000000',
  },
}
SCSS
$custom: #5b1988;
$custom-light: #8e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1988",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 275.676,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38283,
    "c": 0.17088,
    "h": 306.6
  },
  "luminance": 0.04697
}

Semantic roles & 50–950 ramp

primary
#5B1988
secondary
#73BB41
accent
#EC3C83
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1988

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

Preview Lab → · Contrast checker → · Palette generator →

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