#5A22A9#5A22A9

#5A22A9 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.196 H 295.2°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5A22A9
RGBrgb(90, 34, 169)
HSLhsl(265, 67%, 40%)
HSVhsv(265, 80%, 66%)
CMYKcmyk(46.7%, 79.9%, 0%, 33.7%)
CIE-LABlab(29.87, 52.77, -61.84)
CIE-LCHlch(29.87, 81.30, 310.47°)
OKLaboklab(41.95% 0.0835 -0.1773)
OKLCHoklch(41.95% 0.196 295.2)
XYZxyz(11.9480, 6.1820, 38.0921)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A22A9 #71A922
analogous
#222EA9 #5A22A9 #9E22A9
triadic
#5A22A9 #A95A22 #22A95A
tetradic
#5A22A9 #A9222E #71A922 #22A99E
square
#5A22A9 #A9222E #71A922 #22A99E
split-complementary
#5A22A9 #A99E22 #2EA922
monochromatic
#240D43 #3F1876 #5A22A9 #7632D6 #9865E0

Accessibility & contrast

On white

9.39
#5A22A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A22A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A22A9
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A22A9#FFFFFF#000000##FFFFFF
##5A22A91.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#434866
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a22a9;
/* rgb */ color: rgb(90, 34, 169);
/* oklch */ color: oklch(42.0% 0.196 295.2);
Tailwind
colors: {
  custom: {
    50: '#9165c4',
    500: '#5a22a9',
    950: '#000000',
  },
}
SCSS
$custom: #5a22a9;
$custom-light: #9165c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a22a9",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 264.889,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41952,
    "c": 0.19603,
    "h": 295.2
  },
  "luminance": 0.06182
}

Semantic roles & 50–950 ramp

primary
#5A22A9
secondary
#9CC561
accent
#E93EA2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A22A9

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

Preview Lab → · Contrast checker → · Palette generator →

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