#5A1686#5A1686

#5A1686 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.171 H 307.1°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#5A1686
RGBrgb(90, 22, 134)
HSLhsl(276, 72%, 31%)
HSVhsv(276, 84%, 53%)
CMYKcmyk(32.8%, 83.6%, 0%, 47.5%)
CIE-LABlab(25.16, 48.81, -48.05)
CIE-LCHlch(25.16, 68.49, 315.45°)
OKLaboklab(37.72% 0.1035 -0.1368)
OKLCHoklch(37.72% 0.171 307.1)
XYZxyz(8.8055, 4.4688, 22.9483)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1686 #428616
analogous
#221686 #5A1686 #86167A
triadic
#5A1686 #865A16 #16865A
tetradic
#5A1686 #862216 #428616 #167A86
square
#5A1686 #862216 #428616 #167A86
split-complementary
#5A1686 #7A8616 #168622
monochromatic
#13051D #370D51 #5A1686 #7D1FBB #9D38DE

Accessibility & contrast

On white

11.09
#5A1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5A1686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1686
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1686#FFFFFF#000000##FFFFFF
##5A16861.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#52344F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1686;
/* rgb */ color: rgb(90, 22, 134);
/* oklch */ color: oklch(37.7% 0.171 307.1);
Tailwind
colors: {
  custom: {
    50: '#8e5daa',
    500: '#5a1686',
    950: '#000000',
  },
}
SCSS
$custom: #5a1686;
$custom-light: #8e5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1686",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 276.429,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37718,
    "c": 0.17149,
    "h": 307.1
  },
  "luminance": 0.04469
}

Semantic roles & 50–950 ramp

primary
#5A1686
secondary
#6FBA3E
accent
#EF3980
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1686

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

Preview Lab → · Contrast checker → · Palette generator →

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