#5B1990#5B1990

#5B1990 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.179 H 303.9°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5B1990
RGBrgb(91, 25, 144)
HSLhsl(273, 70%, 33%)
HSVhsv(273, 83%, 56%)
CMYKcmyk(36.8%, 82.6%, 0%, 43.5%)
CIE-LABlab(26.54, 50.24, -52.02)
CIE-LCHlch(26.54, 72.32, 314.00°)
OKLaboklab(38.98% 0.0997 -0.1484)
OKLCHoklch(38.98% 0.179 303.9)
XYZxyz(9.6949, 4.9330, 26.8216)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1990 #4E9019
analogous
#1F1990 #5B1990 #901989
triadic
#5B1990 #905B19 #19905B
tetradic
#5B1990 #901F19 #4E9019 #198990
square
#5B1990 #901F19 #4E9019 #198990
split-complementary
#5B1990 #899019 #19901F
monochromatic
#190728 #3A105C #5B1990 #7C22C4 #9A45DF

Accessibility & contrast

On white

10.57
#5B1990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5B1990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1990
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1990#FFFFFF#000000##FFFFFF
##5B19901.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#003F8E
Tritanopia (blue-blind)
#503A56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b1990;
/* rgb */ color: rgb(91, 25, 144);
/* oklch */ color: oklch(39.0% 0.179 303.9);
Tailwind
colors: {
  custom: {
    50: '#8f5fb1',
    500: '#5b1990',
    950: '#000000',
  },
}
SCSS
$custom: #5b1990;
$custom-light: #8f5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1990",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 273.277,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38977,
    "c": 0.17879,
    "h": 303.9
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#5B1990
secondary
#7CC045
accent
#ED3B8A
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1990

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

Preview Lab → · Contrast checker → · Palette generator →

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