#5A2191#5A2191

#5A2191 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.172 H 302.1°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5A2191
RGBrgb(90, 33, 145)
HSLhsl(271, 63%, 35%)
HSVhsv(271, 77%, 57%)
CMYKcmyk(37.9%, 77.2%, 0%, 43.1%)
CIE-LABlab(27.59, 47.13, -50.94)
CIE-LCHlch(27.59, 69.40, 312.78°)
OKLaboklab(39.7% 0.0912 -0.1453)
OKLCHoklch(39.7% 0.172 302.1)
XYZxyz(9.8699, 5.3057, 27.2867)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2191 #589121
analogous
#222191 #5A2191 #912190
triadic
#5A2191 #915A21 #21915A
tetradic
#5A2191 #912221 #589121 #219091
square
#5A2191 #912221 #589121 #219091
split-complementary
#5A2191 #909121 #219122
monochromatic
#1C0A2D #3B165F #5A2191 #792CC3 #9754D8

Accessibility & contrast

On white

10.19
#5A2191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5A2191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2191
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2191#FFFFFF#000000##FFFFFF
##5A21911.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#4E3E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a2191;
/* rgb */ color: rgb(90, 33, 145);
/* oklch */ color: oklch(39.7% 0.172 302.1);
Tailwind
colors: {
  custom: {
    50: '#8e63b2',
    500: '#5a2191',
    950: '#000000',
  },
}
SCSS
$custom: #5a2191;
$custom-light: #8e63b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2191",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 270.536,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39704,
    "c": 0.17156,
    "h": 302.1
  },
  "luminance": 0.05306
}

Semantic roles & 50–950 ramp

primary
#5A2191
secondary
#86BC52
accent
#E64292
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A2191

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

Preview Lab → · Contrast checker → · Palette generator →

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