#5A2192#5A2192

#5A2192 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.173 H 301.8°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5A2192
RGBrgb(90, 33, 146)
HSLhsl(270, 63%, 35%)
HSVhsv(270, 77%, 57%)
CMYKcmyk(38.4%, 77.4%, 0%, 42.7%)
CIE-LABlab(27.67, 47.38, -51.42)
CIE-LCHlch(27.67, 69.92, 312.66°)
OKLaboklab(39.79% 0.0909 -0.1467)
OKLCHoklch(39.79% 0.173 301.8)
XYZxyz(9.9474, 5.3366, 27.6946)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2192 #599221
analogous
#212192 #5A2192 #922192
triadic
#5A2192 #925A21 #21925A
tetradic
#5A2192 #922121 #599221 #219292
square
#5A2192 #922121 #599221 #219292
split-complementary
#5A2192 #929221 #219221
monochromatic
#1C0A2E #3B1660 #5A2192 #792CC4 #9755D9

Accessibility & contrast

On white

10.16
#5A2192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5A2192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2192
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2192#FFFFFF#000000##FFFFFF
##5A21921.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#004190
Tritanopia (blue-blind)
#4E3E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a2192;
/* rgb */ color: rgb(90, 33, 146);
/* oklch */ color: oklch(39.8% 0.173 301.8);
Tailwind
colors: {
  custom: {
    50: '#8e63b3',
    500: '#5a2192',
    950: '#000000',
  },
}
SCSS
$custom: #5a2192;
$custom-light: #8e63b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2192",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 146
  },
  "hsl": {
    "h": 270.265,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3979,
    "c": 0.17263,
    "h": 301.8
  },
  "luminance": 0.05337
}

Semantic roles & 50–950 ramp

primary
#5A2192
secondary
#87BC53
accent
#E64293
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2192

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

Preview Lab → · Contrast checker → · Palette generator →

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