#5B1478#5B1478

#5B1478 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.160 H 313.4°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#5B1478
RGBrgb(91, 20, 120)
HSLhsl(283, 71%, 27%)
HSVhsv(283, 83%, 47%)
CMYKcmyk(24.2%, 83.3%, 0%, 52.9%)
CIE-LABlab(23.94, 46.56, -41.18)
CIE-LCHlch(23.94, 62.16, 318.51°)
OKLaboklab(36.53% 0.1101 -0.1165)
OKLCHoklch(36.53% 0.16 313.4)
XYZxyz(7.9541, 4.0808, 18.1343)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1478 #317814
analogous
#291478 #5B1478 #781463
triadic
#5B1478 #785B14 #14785B
tetradic
#5B1478 #782914 #317814 #146378
square
#5B1478 #782914 #317814 #146378
split-complementary
#5B1478 #637814 #147829
monochromatic
#14041A #330B44 #5B1478 #831DAC #A82BDC

Accessibility & contrast

On white

11.56
#5B1478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5B1478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1478
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1478#FFFFFF#000000##FFFFFF
##5B14781.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#053A76
Tritanopia (blue-blind)
#582D47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1478;
/* rgb */ color: rgb(91, 20, 120);
/* oklch */ color: oklch(36.5% 0.160 313.4);
Tailwind
colors: {
  custom: {
    50: '#8d5ca0',
    500: '#5b1478',
    950: '#000000',
  },
}
SCSS
$custom: #5b1478;
$custom-light: #8d5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1478",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 282.6,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36532,
    "c": 0.16032,
    "h": 313.4
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#5B1478
secondary
#5CAE3A
accent
#EE3A6E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040F
muted
#7E797E

Preview Lab

Preview with #5B1478

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

Preview Lab → · Contrast checker → · Palette generator →

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