#5A1990#5A1990

#5A1990 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.179 H 303.4°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#5A1990
RGBrgb(90, 25, 144)
HSLhsl(273, 70%, 33%)
HSVhsv(273, 83%, 56%)
CMYKcmyk(37.5%, 82.6%, 0%, 43.5%)
CIE-LABlab(26.40, 50.08, -52.27)
CIE-LCHlch(26.40, 72.39, 313.78°)
OKLaboklab(38.85% 0.0982 -0.1492)
OKLCHoklch(38.85% 0.179 303.4)
XYZxyz(9.5969, 4.8825, 26.8170)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1990 #4F9019
analogous
#1E1990 #5A1990 #90198A
triadic
#5A1990 #905A19 #19905A
tetradic
#5A1990 #901E19 #4F9019 #198A90
square
#5A1990 #901E19 #4F9019 #198A90
split-complementary
#5A1990 #8A9019 #19901E
monochromatic
#190728 #39105C #5A1990 #7B22C4 #9945DF

Accessibility & contrast

On white

10.62
#5A1990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5A1990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1990
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1990#FFFFFF#000000##FFFFFF
##5A19901.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#003E8E
Tritanopia (blue-blind)
#4F3A56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a1990;
/* rgb */ color: rgb(90, 25, 144);
/* oklch */ color: oklch(38.8% 0.179 303.4);
Tailwind
colors: {
  custom: {
    50: '#8e5fb1',
    500: '#5a1990',
    950: '#000000',
  },
}
SCSS
$custom: #5a1990;
$custom-light: #8e5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1990",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 272.773,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38845,
    "c": 0.17859,
    "h": 303.4
  },
  "luminance": 0.04883
}

Semantic roles & 50–950 ramp

primary
#5A1990
secondary
#7DC045
accent
#ED3B8C
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1990

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

Preview Lab → · Contrast checker → · Palette generator →

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