#5B1684#5B1684

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

Color values

HEX#5B1684
RGBrgb(91, 22, 132)
HSLhsl(278, 71%, 30%)
HSVhsv(278, 83%, 52%)
CMYKcmyk(31.1%, 83.3%, 0%, 48.2%)
CIE-LABlab(25.15, 48.53, -46.81)
CIE-LCHlch(25.15, 67.42, 316.03°)
OKLaboklab(37.69% 0.1055 -0.1331)
OKLCHoklch(37.69% 0.17 308.4)
XYZxyz(8.7653, 4.4641, 22.2252)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1684 #3F8416
analogous
#241684 #5B1684 #841676
triadic
#5B1684 #845B16 #16845B
tetradic
#5B1684 #842416 #3F8416 #167684
square
#5B1684 #842416 #3F8416 #167684
split-complementary
#5B1684 #768416 #168424
monochromatic
#13051B #370D50 #5B1684 #7F1FB8 #9F37DE

Accessibility & contrast

On white

11.09
#5B1684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1684
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1684#FFFFFF#000000##FFFFFF
##5B16841.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#54334E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1684;
/* rgb */ color: rgb(91, 22, 132);
/* oklch */ color: oklch(37.7% 0.170 308.4);
Tailwind
colors: {
  custom: {
    50: '#8e5da9',
    500: '#5b1684',
    950: '#000000',
  },
}
SCSS
$custom: #5b1684;
$custom-light: #8e5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1684",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 277.636,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37687,
    "c": 0.16983,
    "h": 308.4
  },
  "luminance": 0.04464
}

Semantic roles & 50–950 ramp

primary
#5B1684
secondary
#6BB83D
accent
#EE3A7D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1684

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

Preview Lab → · Contrast checker → · Palette generator →

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