#5B2183#5B2183

#5B2183 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.157 H 307.5°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5B2183
RGBrgb(91, 33, 131)
HSLhsl(276, 60%, 32%)
HSVhsv(276, 75%, 51%)
CMYKcmyk(30.5%, 74.8%, 0%, 48.6%)
CIE-LABlab(26.59, 43.91, -43.84)
CIE-LCHlch(26.59, 62.05, 315.05°)
OKLaboklab(38.68% 0.0956 -0.1244)
OKLCHoklch(38.68% 0.157 307.5)
XYZxyz(8.9541, 4.9507, 21.9522)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2183 #498321
analogous
#2A2183 #5B2183 #83217A
triadic
#5B2183 #835B21 #21835B
tetradic
#5B2183 #832A21 #498321 #217A83
square
#5B2183 #832A21 #498321 #217A83
split-complementary
#5B2183 #7A8321 #21832A
monochromatic
#170821 #391552 #5B2183 #7D2DB4 #9B4CD2

Accessibility & contrast

On white

10.55
#5B2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5B2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2183
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2183#FFFFFF#000000##FFFFFF
##5B21831.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2183;
/* rgb */ color: rgb(91, 33, 131);
/* oklch */ color: oklch(38.7% 0.157 307.5);
Tailwind
colors: {
  custom: {
    50: '#8e62a8',
    500: '#5b2183',
    950: '#000000',
  },
}
SCSS
$custom: #5b2183;
$custom-light: #8e62a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2183",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 275.51,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38677,
    "c": 0.15693,
    "h": 307.5
  },
  "luminance": 0.04951
}

Semantic roles & 50–950 ramp

primary
#5B2183
secondary
#76B54B
accent
#E34585
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2183

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

Preview Lab → · Contrast checker → · Palette generator →

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