#5B2176#5B2176

#5B2176 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.7% C 0.143 H 312.9°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#5B2176
RGBrgb(91, 33, 118)
HSLhsl(281, 56%, 30%)
HSVhsv(281, 72%, 46%)
CMYKcmyk(22.9%, 72%, 0%, 53.7%)
CIE-LABlab(25.62, 40.87, -37.18)
CIE-LCHlch(25.62, 55.25, 317.71°)
OKLaboklab(37.68% 0.0975 -0.1049)
OKLCHoklch(37.68% 0.143 312.9)
XYZxyz(8.1277, 4.6201, 17.5997)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2176 #3C7621
analogous
#312176 #5B2176 #762167
triadic
#5B2176 #765B21 #21765B
tetradic
#5B2176 #763121 #3C7621 #216776
square
#5B2176 #763121 #3C7621 #216776
split-complementary
#5B2176 #677621 #217631
monochromatic
#120718 #361446 #5B2176 #802EA6 #A146CB

Accessibility & contrast

On white

10.91
#5B2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5B2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2176
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2176#FFFFFF#000000##FFFFFF
##5B21761.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#1A3E74
Tritanopia (blue-blind)
#583349
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b2176;
/* rgb */ color: rgb(91, 33, 118);
/* oklch */ color: oklch(37.7% 0.143 312.9);
Tailwind
colors: {
  custom: {
    50: '#8d629e',
    500: '#5b2176',
    950: '#000000',
  },
}
SCSS
$custom: #5b2176;
$custom-light: #8d629e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2176",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 280.941,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37679,
    "c": 0.14318,
    "h": 312.9
  },
  "luminance": 0.0462
}

Semantic roles & 50–950 ramp

primary
#5B2176
secondary
#68A94A
accent
#E04878
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5B2176

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

Preview Lab → · Contrast checker → · Palette generator →

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