#5A2199#5A2199

#5A2199 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.180 H 299.6°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5A2199
RGBrgb(90, 33, 153)
HSLhsl(269, 65%, 36%)
HSVhsv(269, 78%, 60%)
CMYKcmyk(41.2%, 78.4%, 0%, 40%)
CIE-LABlab(28.28, 49.13, -54.74)
CIE-LCHlch(28.28, 73.55, 311.91°)
OKLaboklab(40.4% 0.0891 -0.1565)
OKLCHoklch(40.4% 0.18 299.6)
XYZxyz(10.5086, 5.5612, 30.6506)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2199 #609921
analogous
#212499 #5A2199 #962199
triadic
#5A2199 #995A21 #21995A
tetradic
#5A2199 #992124 #609921 #219996
square
#5A2199 #992124 #609921 #219996
split-complementary
#5A2199 #999621 #249921
monochromatic
#1F0B34 #3C1667 #5A2199 #782CCB #9759DB

Accessibility & contrast

On white

9.94
#5A2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5A2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2199
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2199#FFFFFF#000000##FFFFFF
##5A21991.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#4B415C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a2199;
/* rgb */ color: rgb(90, 33, 153);
/* oklch */ color: oklch(40.4% 0.180 299.6);
Tailwind
colors: {
  custom: {
    50: '#8f63b8',
    500: '#5a2199',
    950: '#000000',
  },
}
SCSS
$custom: #5a2199;
$custom-light: #8f63b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2199",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 268.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.404,
    "c": 0.18006,
    "h": 299.6
  },
  "luminance": 0.05561
}

Semantic roles & 50–950 ramp

primary
#5A2199
secondary
#8EBF56
accent
#E84098
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2199

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

Preview Lab → · Contrast checker → · Palette generator →

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