#5A1689#5A1689

#5A1689 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.174 H 306.0°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5A1689
RGBrgb(90, 22, 137)
HSLhsl(275, 72%, 31%)
HSVhsv(275, 84%, 54%)
CMYKcmyk(34.3%, 83.9%, 0%, 46.3%)
CIE-LABlab(25.42, 49.50, -49.50)
CIE-LCHlch(25.42, 70.00, 315.00°)
OKLaboklab(37.98% 0.1026 -0.141)
OKLCHoklch(37.98% 0.174 306)
XYZxyz(9.0177, 4.5537, 24.0659)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1689 #458916
analogous
#201689 #5A1689 #89167E
triadic
#5A1689 #895A16 #16895A
tetradic
#5A1689 #892016 #458916 #167E89
square
#5A1689 #892016 #458916 #167E89
split-complementary
#5A1689 #7E8916 #168920
monochromatic
#150520 #370E54 #5A1689 #7D1EBE #9C3ADF

Accessibility & contrast

On white

10.99
#5A1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1689
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1689#FFFFFF#000000##FFFFFF
##5A16891.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003C87
Tritanopia (blue-blind)
#513651
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1689;
/* rgb */ color: rgb(90, 22, 137);
/* oklch */ color: oklch(38.0% 0.174 306.0);
Tailwind
colors: {
  custom: {
    50: '#8e5dac',
    500: '#5a1689',
    950: '#000000',
  },
}
SCSS
$custom: #5a1689;
$custom-light: #8e5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1689",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 275.478,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37978,
    "c": 0.17439,
    "h": 306
  },
  "luminance": 0.04554
}

Semantic roles & 50–950 ramp

primary
#5A1689
secondary
#72BD3E
accent
#EF3983
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1689

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

Preview Lab → · Contrast checker → · Palette generator →

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