#5B2178#5B2178

#5B2178 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.8% C 0.145 H 312.0°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#5B2178
RGBrgb(91, 33, 120)
HSLhsl(280, 57%, 30%)
HSVhsv(280, 73%, 47%)
CMYKcmyk(24.2%, 72.5%, 0%, 52.9%)
CIE-LABlab(25.77, 41.33, -38.22)
CIE-LCHlch(25.77, 56.30, 317.24°)
OKLaboklab(37.83% 0.0973 -0.1079)
OKLCHoklch(37.83% 0.145 312)
XYZxyz(8.2478, 4.6681, 18.2322)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2178 #3E7821
analogous
#2F2178 #5B2178 #78216A
triadic
#5B2178 #785B21 #21785B
tetradic
#5B2178 #782F21 #3E7821 #216A78
square
#5B2178 #782F21 #3E7821 #216A78
split-complementary
#5B2178 #6A7821 #21782F
monochromatic
#120718 #371448 #5B2178 #7F2EA8 #A047CC

Accessibility & contrast

On white

10.86
#5B2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5B2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2178
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2178#FFFFFF#000000##FFFFFF
##5B21781.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#173E76
Tritanopia (blue-blind)
#58334A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b2178;
/* rgb */ color: rgb(91, 33, 120);
/* oklch */ color: oklch(37.8% 0.145 312.0);
Tailwind
colors: {
  custom: {
    50: '#8d629f',
    500: '#5b2178',
    950: '#000000',
  },
}
SCSS
$custom: #5b2178;
$custom-light: #8d629f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2178",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 280,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.37828,
    "c": 0.14529,
    "h": 312
  },
  "luminance": 0.04668
}

Semantic roles & 50–950 ramp

primary
#5B2178
secondary
#6AAB4A
accent
#E0487A
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050F
muted
#7D7A7E

Preview Lab

Preview with #5B2178

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

Preview Lab → · Contrast checker → · Palette generator →

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