#5A1688#5A1688

#5A1688 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.173 H 306.4°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5A1688
RGBrgb(90, 22, 136)
HSLhsl(276, 72%, 31%)
HSVhsv(276, 84%, 53%)
CMYKcmyk(33.8%, 83.8%, 0%, 46.7%)
CIE-LABlab(25.34, 49.27, -49.02)
CIE-LCHlch(25.34, 69.50, 315.14°)
OKLaboklab(37.89% 0.1029 -0.1396)
OKLCHoklch(37.89% 0.173 306.4)
XYZxyz(8.9463, 4.5251, 23.6899)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1688 #448816
analogous
#211688 #5A1688 #88167D
triadic
#5A1688 #885A16 #16885A
tetradic
#5A1688 #882116 #448816 #167D88
square
#5A1688 #882116 #448816 #167D88
split-complementary
#5A1688 #7D8816 #168821
monochromatic
#14051F #370D53 #5A1688 #7D1FBD #9C39DF

Accessibility & contrast

On white

11.02
#5A1688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5A1688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1688
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1688#FFFFFF#000000##FFFFFF
##5A16881.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1688;
/* rgb */ color: rgb(90, 22, 136);
/* oklch */ color: oklch(37.9% 0.173 306.4);
Tailwind
colors: {
  custom: {
    50: '#8e5dac',
    500: '#5a1688',
    950: '#000000',
  },
}
SCSS
$custom: #5a1688;
$custom-light: #8e5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1688",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 136
  },
  "hsl": {
    "h": 275.789,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37891,
    "c": 0.17342,
    "h": 306.4
  },
  "luminance": 0.04525
}

Semantic roles & 50–950 ramp

primary
#5A1688
secondary
#71BC3E
accent
#EF3982
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1688

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

Preview Lab → · Contrast checker → · Palette generator →

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