#5B1678#5B1678

#5B1678 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.158 H 313.2°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#5B1678
RGBrgb(91, 22, 120)
HSLhsl(282, 69%, 28%)
HSVhsv(282, 82%, 47%)
CMYKcmyk(24.2%, 81.7%, 0%, 52.9%)
CIE-LABlab(24.18, 45.87, -40.80)
CIE-LCHlch(24.18, 61.39, 318.35°)
OKLaboklab(36.7% 0.1084 -0.1154)
OKLCHoklch(36.7% 0.158 313.2)
XYZxyz(7.9909, 4.1543, 18.1466)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1678 #337816
analogous
#2A1678 #5B1678 #781664
triadic
#5B1678 #785B16 #16785B
tetradic
#5B1678 #782A16 #337816 #166478
square
#5B1678 #782A16 #337816 #166478
split-complementary
#5B1678 #647816 #16782A
monochromatic
#14051A #340D44 #5B1678 #821FAC #A72FD9

Accessibility & contrast

On white

11.47
#5B1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5B1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1678
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1678#FFFFFF#000000##FFFFFF
##5B16781.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#083B76
Tritanopia (blue-blind)
#582E47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1678;
/* rgb */ color: rgb(91, 22, 120);
/* oklch */ color: oklch(36.7% 0.158 313.2);
Tailwind
colors: {
  custom: {
    50: '#8d5da0',
    500: '#5b1678',
    950: '#000000',
  },
}
SCSS
$custom: #5b1678;
$custom-light: #8d5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1678",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 282.245,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.367,
    "c": 0.15834,
    "h": 313.2
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#5B1678
secondary
#5EAD3C
accent
#EC3C70
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5B1678

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

Preview Lab → · Contrast checker → · Palette generator →

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