#5B1994#5B1994

#5B1994 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.183 H 302.6°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5B1994
RGBrgb(91, 25, 148)
HSLhsl(272, 71%, 34%)
HSVhsv(272, 83%, 58%)
CMYKcmyk(38.5%, 83.1%, 0%, 42%)
CIE-LABlab(26.90, 51.18, -53.91)
CIE-LCHlch(26.90, 74.34, 313.51°)
OKLaboklab(39.33% 0.0984 -0.154)
OKLCHoklch(39.33% 0.183 302.6)
XYZxyz(10.0060, 5.0575, 28.4603)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1994 #529419
analogous
#1E1994 #5B1994 #941990
triadic
#5B1994 #945B19 #19945B
tetradic
#5B1994 #941E19 #529419 #199094
square
#5B1994 #941E19 #529419 #199094
split-complementary
#5B1994 #909419 #19941E
monochromatic
#1B072B #3B1060 #5B1994 #7B22C8 #9947E0

Accessibility & contrast

On white

10.44
#5B1994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5B1994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1994
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1994#FFFFFF#000000##FFFFFF
##5B19941.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#4F3C58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5b1994;
/* rgb */ color: rgb(91, 25, 148);
/* oklch */ color: oklch(39.3% 0.183 302.6);
Tailwind
colors: {
  custom: {
    50: '#905fb4',
    500: '#5b1994',
    950: '#000000',
  },
}
SCSS
$custom: #5b1994;
$custom-light: #905fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1994",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 272.195,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39333,
    "c": 0.18276,
    "h": 302.6
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#5B1994
secondary
#80C147
accent
#EE3A8D
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1994

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

Preview Lab → · Contrast checker → · Palette generator →

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