#5B1782#5B1782

#5B1782 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.167 H 309.1°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#5B1782
RGBrgb(91, 23, 130)
HSLhsl(278, 70%, 30%)
HSVhsv(278, 82%, 51%)
CMYKcmyk(30%, 82.3%, 0%, 49%)
CIE-LABlab(25.10, 47.73, -45.63)
CIE-LCHlch(25.10, 66.03, 316.29°)
OKLaboklab(37.6% 0.1052 -0.1296)
OKLCHoklch(37.6% 0.167 309.1)
XYZxyz(8.6492, 4.4488, 21.5178)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1782 #3E8217
analogous
#261782 #5B1782 #821773
triadic
#5B1782 #825B17 #17825B
tetradic
#5B1782 #822617 #3E8217 #177382
square
#5B1782 #822617 #3E8217 #177382
split-complementary
#5B1782 #738217 #178226
monochromatic
#12051A #370E4E #5B1782 #7F20B6 #A038DC

Accessibility & contrast

On white

11.11
#5B1782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5B1782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1782
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1782#FFFFFF#000000##FFFFFF
##5B17821.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#55334D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1782;
/* rgb */ color: rgb(91, 23, 130);
/* oklch */ color: oklch(37.6% 0.167 309.1);
Tailwind
colors: {
  custom: {
    50: '#8e5da7',
    500: '#5b1782',
    950: '#000000',
  },
}
SCSS
$custom: #5b1782;
$custom-light: #8e5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1782",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 278.131,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.37602,
    "c": 0.16695,
    "h": 309.1
  },
  "luminance": 0.04449
}

Semantic roles & 50–950 ramp

primary
#5B1782
secondary
#6AB63E
accent
#ED3B7C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1782

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

Preview Lab → · Contrast checker → · Palette generator →

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