#5B1796#5B1796

#5B1796 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.4% C 0.186 H 302.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5B1796
RGBrgb(91, 23, 150)
HSLhsl(272, 73%, 34%)
HSVhsv(272, 85%, 59%)
CMYKcmyk(39.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(26.85, 52.34, -55.23)
CIE-LCHlch(26.85, 76.09, 313.46°)
OKLaboklab(39.35% 0.0992 -0.1578)
OKLCHoklch(39.35% 0.186 302.1)
XYZxyz(10.1245, 5.0389, 29.2875)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1796 #529617
analogous
#1C1796 #5B1796 #961792
triadic
#5B1796 #965B17 #17965B
tetradic
#5B1796 #961C17 #529617 #179296
square
#5B1796 #961C17 #529617 #179296
split-complementary
#5B1796 #929617 #17961C
monochromatic
#1B072C #3B0F61 #5B1796 #7B1FCB #9945E2

Accessibility & contrast

On white

10.46
#5B1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1796
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1796#FFFFFF#000000##FFFFFF
##5B17961.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#4E3C59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b1796;
/* rgb */ color: rgb(91, 23, 150);
/* oklch */ color: oklch(39.4% 0.186 302.1);
Tailwind
colors: {
  custom: {
    50: '#905fb6',
    500: '#5b1796',
    950: '#000000',
  },
}
SCSS
$custom: #5b1796;
$custom-light: #905fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1796",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 272.126,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39352,
    "c": 0.18641,
    "h": 302.1
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#5B1796
secondary
#80C345
accent
#F0388D
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1796

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

Preview Lab → · Contrast checker → · Palette generator →

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