#5A1785#5A1785

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

Color values

HEX#5A1785
RGBrgb(90, 23, 133)
HSLhsl(277, 71%, 31%)
HSVhsv(277, 83%, 52%)
CMYKcmyk(32.3%, 82.7%, 0%, 47.8%)
CIE-LABlab(25.20, 48.23, -47.37)
CIE-LCHlch(25.20, 67.60, 315.52°)
OKLaboklab(37.71% 0.103 -0.1348)
OKLCHoklch(37.71% 0.17 307.4)
XYZxyz(8.7556, 4.4800, 22.5892)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1785 #428517
analogous
#231785 #5A1785 #851779
triadic
#5A1785 #855A17 #17855A
tetradic
#5A1785 #852317 #428517 #177985
square
#5A1785 #852317 #428517 #177985
split-complementary
#5A1785 #798517 #178523
monochromatic
#13051D #370E51 #5A1785 #7D20B9 #9D3ADD

Accessibility & contrast

On white

11.08
#5A1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1785
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1785#FFFFFF#000000##FFFFFF
##5A17851.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#53344F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1785;
/* rgb */ color: rgb(90, 23, 133);
/* oklch */ color: oklch(37.7% 0.170 307.4);
Tailwind
colors: {
  custom: {
    50: '#8e5ea9',
    500: '#5a1785',
    950: '#000000',
  },
}
SCSS
$custom: #5a1785;
$custom-light: #8e5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1785",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 276.545,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37715,
    "c": 0.16959,
    "h": 307.4
  },
  "luminance": 0.0448
}

Semantic roles & 50–950 ramp

primary
#5A1785
secondary
#6FB93F
accent
#ED3B80
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1785

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

Preview Lab → · Contrast checker → · Palette generator →

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