#5B1680#5B1680

#5B1680 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.166 H 309.9°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#5B1680
RGBrgb(91, 22, 128)
HSLhsl(279, 71%, 29%)
HSVhsv(279, 83%, 50%)
CMYKcmyk(28.9%, 82.8%, 0%, 49.8%)
CIE-LABlab(24.82, 47.63, -44.83)
CIE-LCHlch(24.82, 65.41, 316.73°)
OKLaboklab(37.35% 0.1065 -0.1273)
OKLCHoklch(37.35% 0.166 309.9)
XYZxyz(8.4968, 4.3567, 20.8112)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1680 #3B8016
analogous
#261680 #5B1680 #801670
triadic
#5B1680 #805B16 #16805B
tetradic
#5B1680 #802616 #3B8016 #167080
square
#5B1680 #802616 #3B8016 #167080
split-complementary
#5B1680 #708016 #168026
monochromatic
#13041A #360D4C #5B1680 #801FB4 #A234DC

Accessibility & contrast

On white

11.22
#5B1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B1680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1680
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1680#FFFFFF#000000##FFFFFF
##5B16801.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#56314C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1680;
/* rgb */ color: rgb(91, 22, 128);
/* oklch */ color: oklch(37.4% 0.166 309.9);
Tailwind
colors: {
  custom: {
    50: '#8e5da6',
    500: '#5b1680',
    950: '#000000',
  },
}
SCSS
$custom: #5b1680;
$custom-light: #8e5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1680",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 279.057,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37351,
    "c": 0.16598,
    "h": 309.9
  },
  "luminance": 0.04356
}

Semantic roles & 50–950 ramp

primary
#5B1680
secondary
#67B53D
accent
#ED3A79
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1680

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

Preview Lab → · Contrast checker → · Palette generator →

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