#5B2181#5B2181

#5B2181 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.155 H 308.3°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#5B2181
RGBrgb(91, 33, 129)
HSLhsl(276, 59%, 32%)
HSVhsv(276, 74%, 51%)
CMYKcmyk(29.5%, 74.4%, 0%, 49.4%)
CIE-LABlab(26.44, 43.44, -42.83)
CIE-LCHlch(26.44, 61.00, 315.40°)
OKLaboklab(38.52% 0.096 -0.1215)
OKLCHoklch(38.52% 0.155 308.3)
XYZxyz(8.8199, 4.8970, 21.2452)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2181 #478121
analogous
#2B2181 #5B2181 #812177
triadic
#5B2181 #815B21 #21815B
tetradic
#5B2181 #812B21 #478121 #217781
square
#5B2181 #812B21 #478121 #217781
split-complementary
#5B2181 #778121 #21812B
monochromatic
#160820 #391550 #5B2181 #7D2DB2 #9C4BD1

Accessibility & contrast

On white

10.61
#5B2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2181
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2181#FFFFFF#000000##FFFFFF
##5B21811.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#053F7F
Tritanopia (blue-blind)
#55374F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b2181;
/* rgb */ color: rgb(91, 33, 129);
/* oklch */ color: oklch(38.5% 0.155 308.3);
Tailwind
colors: {
  custom: {
    50: '#8d62a6',
    500: '#5b2181',
    950: '#000000',
  },
}
SCSS
$custom: #5b2181;
$custom-light: #8d62a6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2181",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 276.25,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38518,
    "c": 0.15481,
    "h": 308.3
  },
  "luminance": 0.04897
}

Semantic roles & 50–950 ramp

primary
#5B2181
secondary
#74B44A
accent
#E24584
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5B2181

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

Preview Lab → · Contrast checker → · Palette generator →

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