#5A1690#5A1690

#5A1690 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.181 H 303.6°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#5A1690
RGBrgb(90, 22, 144)
HSLhsl(273, 73%, 33%)
HSVhsv(273, 85%, 56%)
CMYKcmyk(37.5%, 84.7%, 0%, 43.5%)
CIE-LABlab(26.04, 51.12, -52.85)
CIE-LCHlch(26.04, 73.52, 314.05°)
OKLaboklab(38.6% 0.1004 -0.1509)
OKLCHoklch(38.6% 0.181 303.6)
XYZxyz(9.5362, 4.7611, 26.7967)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1690 #4C9016
analogous
#1D1690 #5A1690 #901689
triadic
#5A1690 #905A16 #16905A
tetradic
#5A1690 #901D16 #4C9016 #168990
square
#5A1690 #901D16 #4C9016 #168990
split-complementary
#5A1690 #899016 #16901D
monochromatic
#180626 #390E5B #5A1690 #7B1EC5 #9A3FE2

Accessibility & contrast

On white

10.76
#5A1690 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5A1690 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1690
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1690#FFFFFF#000000##FFFFFF
##5A16901.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#003D8E
Tritanopia (blue-blind)
#4F3955
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a1690;
/* rgb */ color: rgb(90, 22, 144);
/* oklch */ color: oklch(38.6% 0.181 303.6);
Tailwind
colors: {
  custom: {
    50: '#8f5eb1',
    500: '#5a1690',
    950: '#000000',
  },
}
SCSS
$custom: #5a1690;
$custom-light: #8f5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1690",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 144
  },
  "hsl": {
    "h": 273.443,
    "s": 73.494,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38599,
    "c": 0.18118,
    "h": 303.6
  },
  "luminance": 0.04761
}

Semantic roles & 50–950 ramp

primary
#5A1690
secondary
#79C240
accent
#F03889
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1690

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

Preview Lab → · Contrast checker → · Palette generator →

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