#5B1785#5B1785

#5B1785 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.170 H 307.9°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5B1785
RGBrgb(91, 23, 133)
HSLhsl(277, 71%, 31%)
HSVhsv(277, 83%, 52%)
CMYKcmyk(31.6%, 82.7%, 0%, 47.8%)
CIE-LABlab(25.35, 48.41, -47.11)
CIE-LCHlch(25.35, 67.55, 315.78°)
OKLaboklab(37.85% 0.1044 -0.134)
OKLCHoklch(37.85% 0.17 307.9)
XYZxyz(8.8535, 4.5305, 22.5938)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1785 #418517
analogous
#241785 #5B1785 #851778
triadic
#5B1785 #855B17 #17855B
tetradic
#5B1785 #852417 #418517 #177885
square
#5B1785 #852417 #418517 #177885
split-complementary
#5B1785 #788517 #178524
monochromatic
#14051D #370E51 #5B1785 #7F20B9 #9E3ADD

Accessibility & contrast

On white

11.02
#5B1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5B1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1785
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1785#FFFFFF#000000##FFFFFF
##5B17851.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#54344F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1785;
/* rgb */ color: rgb(91, 23, 133);
/* oklch */ color: oklch(37.9% 0.170 307.9);
Tailwind
colors: {
  custom: {
    50: '#8e5ea9',
    500: '#5b1785',
    950: '#000000',
  },
}
SCSS
$custom: #5b1785;
$custom-light: #8e5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1785",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 277.091,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37855,
    "c": 0.16986,
    "h": 307.9
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#5B1785
secondary
#6DB93F
accent
#ED3B7F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1785

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

Preview Lab → · Contrast checker → · Palette generator →

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