#5B1676#5B1676

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

Color values

HEX#5B1676
RGBrgb(91, 22, 118)
HSLhsl(283, 69%, 27%)
HSVhsv(283, 81%, 46%)
CMYKcmyk(22.9%, 81.4%, 0%, 53.7%)
CIE-LABlab(24.02, 45.44, -39.77)
CIE-LCHlch(24.02, 60.38, 318.81°)
OKLaboklab(36.54% 0.1088 -0.1124)
OKLCHoklch(36.54% 0.156 314.1)
XYZxyz(7.8707, 4.1062, 17.5140)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1676 #317616
analogous
#2B1676 #5B1676 #761661
triadic
#5B1676 #765B16 #16765B
tetradic
#5B1676 #762B16 #317616 #166176
square
#5B1676 #762B16 #317616 #166176
split-complementary
#5B1676 #617616 #16762B
monochromatic
#14051A #330C42 #5B1676 #8320AA #A82ED8

Accessibility & contrast

On white

11.53
#5B1676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1676
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1676#FFFFFF#000000##FFFFFF
##5B16761.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#0D3B74
Tritanopia (blue-blind)
#582D46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1676;
/* rgb */ color: rgb(91, 22, 118);
/* oklch */ color: oklch(36.5% 0.156 314.1);
Tailwind
colors: {
  custom: {
    50: '#8d5c9e',
    500: '#5b1676',
    950: '#000000',
  },
}
SCSS
$custom: #5b1676;
$custom-light: #8d5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1676",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 283.125,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36541,
    "c": 0.15644,
    "h": 314.1
  },
  "luminance": 0.04106
}

Semantic roles & 50–950 ramp

primary
#5B1676
secondary
#5CAC3C
accent
#EB3C6E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5B1676

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

Preview Lab → · Contrast checker → · Palette generator →

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