#5A1687#5A1687

#5A1687 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.172 H 306.7°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#5A1687
RGBrgb(90, 22, 135)
HSLhsl(276, 72%, 31%)
HSVhsv(276, 84%, 53%)
CMYKcmyk(33.3%, 83.7%, 0%, 47.1%)
CIE-LABlab(25.25, 49.04, -48.54)
CIE-LCHlch(25.25, 69.00, 315.30°)
OKLaboklab(37.8% 0.1032 -0.1382)
OKLCHoklch(37.8% 0.172 306.7)
XYZxyz(8.8756, 4.4968, 23.3174)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1687 #438716
analogous
#211687 #5A1687 #87167B
triadic
#5A1687 #875A16 #16875A
tetradic
#5A1687 #872116 #438716 #167B87
square
#5A1687 #872116 #438716 #167B87
split-complementary
#5A1687 #7B8716 #168721
monochromatic
#14051E #370D52 #5A1687 #7D1FBC #9D39DF

Accessibility & contrast

On white

11.06
#5A1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5A1687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1687
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1687#FFFFFF#000000##FFFFFF
##5A16871.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#523550
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1687;
/* rgb */ color: rgb(90, 22, 135);
/* oklch */ color: oklch(37.8% 0.172 306.7);
Tailwind
colors: {
  custom: {
    50: '#8e5dab',
    500: '#5a1687',
    950: '#000000',
  },
}
SCSS
$custom: #5a1687;
$custom-light: #8e5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1687",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 276.106,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37804,
    "c": 0.17245,
    "h": 306.7
  },
  "luminance": 0.04497
}

Semantic roles & 50–950 ramp

primary
#5A1687
secondary
#70BB3E
accent
#EF3981
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1687

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

Preview Lab → · Contrast checker → · Palette generator →

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