#5B2182#5B2182

#5B2182 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.156 H 307.9°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5B2182
RGBrgb(91, 33, 130)
HSLhsl(276, 60%, 32%)
HSVhsv(276, 75%, 51%)
CMYKcmyk(30%, 74.6%, 0%, 49%)
CIE-LABlab(26.52, 43.68, -43.33)
CIE-LCHlch(26.52, 61.53, 315.23°)
OKLaboklab(38.6% 0.0958 -0.1229)
OKLCHoklch(38.6% 0.156 307.9)
XYZxyz(8.8867, 4.9237, 21.5970)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2182 #488221
analogous
#2A2182 #5B2182 #822179
triadic
#5B2182 #825B21 #21825B
tetradic
#5B2182 #822A21 #488221 #217982
square
#5B2182 #822A21 #488221 #217982
split-complementary
#5B2182 #798221 #21822A
monochromatic
#170820 #391551 #5B2182 #7D2DB3 #9C4CD2

Accessibility & contrast

On white

10.58
#5B2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5B2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2182
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2182#FFFFFF#000000##FFFFFF
##5B21821.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#023F80
Tritanopia (blue-blind)
#55384F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b2182;
/* rgb */ color: rgb(91, 33, 130);
/* oklch */ color: oklch(38.6% 0.156 307.9);
Tailwind
colors: {
  custom: {
    50: '#8d62a7',
    500: '#5b2182',
    950: '#000000',
  },
}
SCSS
$custom: #5b2182;
$custom-light: #8d62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2182",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 275.876,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38597,
    "c": 0.15587,
    "h": 307.9
  },
  "luminance": 0.04924
}

Semantic roles & 50–950 ramp

primary
#5B2182
secondary
#75B44A
accent
#E34584
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5B2182

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

Preview Lab → · Contrast checker → · Palette generator →

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