#5B2184#5B2184

#5B2184 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.158 H 307.2°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#5B2184
RGBrgb(91, 33, 132)
HSLhsl(275, 60%, 32%)
HSVhsv(275, 75%, 52%)
CMYKcmyk(31.1%, 75%, 0%, 48.2%)
CIE-LABlab(26.67, 44.15, -44.34)
CIE-LCHlch(26.67, 62.57, 314.88°)
OKLaboklab(38.76% 0.0954 -0.1259)
OKLCHoklch(38.76% 0.158 307.2)
XYZxyz(9.0222, 4.9779, 22.3109)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2184 #4A8421
analogous
#2A2184 #5B2184 #84217B
triadic
#5B2184 #845B21 #21845B
tetradic
#5B2184 #842A21 #4A8421 #217B84
square
#5B2184 #842A21 #4A8421 #217B84
split-complementary
#5B2184 #7B8421 #21842A
monochromatic
#170922 #391553 #5B2184 #7D2DB5 #9B4DD2

Accessibility & contrast

On white

10.52
#5B2184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5B2184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2184
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2184#FFFFFF#000000##FFFFFF
##5B21841.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003F82
Tritanopia (blue-blind)
#543850
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b2184;
/* rgb */ color: rgb(91, 33, 132);
/* oklch */ color: oklch(38.8% 0.158 307.2);
Tailwind
colors: {
  custom: {
    50: '#8e62a8',
    500: '#5b2184',
    950: '#000000',
  },
}
SCSS
$custom: #5b2184;
$custom-light: #8e62a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2184",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 275.152,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38757,
    "c": 0.15799,
    "h": 307.2
  },
  "luminance": 0.04978
}

Semantic roles & 50–950 ramp

primary
#5B2184
secondary
#77B64B
accent
#E34586
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2184

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

Preview Lab → · Contrast checker → · Palette generator →

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