#5A2196#5A2196

#5A2196 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.177 H 300.5°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5A2196
RGBrgb(90, 33, 150)
HSLhsl(269, 64%, 36%)
HSVhsv(269, 78%, 59%)
CMYKcmyk(40%, 78%, 0%, 41.2%)
CIE-LABlab(28.02, 48.38, -53.32)
CIE-LCHlch(28.02, 72.00, 312.22°)
OKLaboklab(40.14% 0.0899 -0.1523)
OKLCHoklch(40.14% 0.177 300.5)
XYZxyz(10.2640, 5.4633, 29.3620)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2196 #5D9621
analogous
#212296 #5A2196 #942196
triadic
#5A2196 #965A21 #21965A
tetradic
#5A2196 #962122 #5D9621 #219694
square
#5A2196 #962122 #5D9621 #219694
split-complementary
#5A2196 #969421 #229621
monochromatic
#1E0B32 #3C1664 #5A2196 #782CC8 #9757DA

Accessibility & contrast

On white

10.04
#5A2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5A2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2196
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2196#FFFFFF#000000##FFFFFF
##5A21961.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#4C405B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2196;
/* rgb */ color: rgb(90, 33, 150);
/* oklch */ color: oklch(40.1% 0.177 300.5);
Tailwind
colors: {
  custom: {
    50: '#8f63b6',
    500: '#5a2196',
    950: '#000000',
  },
}
SCSS
$custom: #5a2196;
$custom-light: #8f63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2196",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 269.231,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40136,
    "c": 0.17688,
    "h": 300.5
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#5A2196
secondary
#8BBE55
accent
#E74196
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2196

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

Preview Lab → · Contrast checker → · Palette generator →

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