#5A2190#5A2190

#5A2190 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.171 H 302.4°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#5A2190
RGBrgb(90, 33, 144)
HSLhsl(271, 63%, 35%)
HSVhsv(271, 77%, 56%)
CMYKcmyk(37.5%, 77.1%, 0%, 43.5%)
CIE-LABlab(27.50, 46.88, -50.46)
CIE-LCHlch(27.50, 68.88, 312.90°)
OKLaboklab(39.62% 0.0914 -0.1439)
OKLCHoklch(39.62% 0.171 302.4)
XYZxyz(9.7931, 5.2750, 26.8824)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2190 #579021
analogous
#232190 #5A2190 #90218F
triadic
#5A2190 #905A21 #21905A
tetradic
#5A2190 #902321 #579021 #218F90
square
#5A2190 #902321 #579021 #218F90
split-complementary
#5A2190 #8F9021 #219023
monochromatic
#1C0A2C #3B165E #5A2190 #792CC2 #9754D8

Accessibility & contrast

On white

10.22
#5A2190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2190
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2190#FFFFFF#000000##FFFFFF
##5A21901.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004093
Deuteranopia (green-blind)
#00418E
Tritanopia (blue-blind)
#4F3D57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a2190;
/* rgb */ color: rgb(90, 33, 144);
/* oklch */ color: oklch(39.6% 0.171 302.4);
Tailwind
colors: {
  custom: {
    50: '#8e63b1',
    500: '#5a2190',
    950: '#000000',
  },
}
SCSS
$custom: #5a2190;
$custom-light: #8e63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2190",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 144
  },
  "hsl": {
    "h": 270.811,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39618,
    "c": 0.1705,
    "h": 302.4
  },
  "luminance": 0.05275
}

Semantic roles & 50–950 ramp

primary
#5A2190
secondary
#85BB51
accent
#E64292
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A2190

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

Preview Lab → · Contrast checker → · Palette generator →

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