#5A22A5#5A22A5

#5A22A5 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.6% C 0.192 H 296.2°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5A22A5
RGBrgb(90, 34, 165)
HSLhsl(266, 66%, 39%)
HSVhsv(266, 79%, 65%)
CMYKcmyk(45.5%, 79.4%, 0%, 35.3%)
CIE-LABlab(29.50, 51.75, -60.04)
CIE-LCHlch(29.50, 79.26, 310.76°)
OKLaboklab(41.58% 0.0848 -0.172)
OKLCHoklch(41.58% 0.192 296.2)
XYZxyz(11.5782, 6.0341, 36.1447)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A22A5 #6DA522
analogous
#222CA5 #5A22A5 #9C22A5
triadic
#5A22A5 #A55A22 #22A55A
tetradic
#5A22A5 #A5222C #6DA522 #22A59C
square
#5A22A5 #A5222C #6DA522 #22A59C
split-complementary
#5A22A5 #A59C22 #2CA522
monochromatic
#230D40 #3E1872 #5A22A5 #7630D4 #9863DF

Accessibility & contrast

On white

9.52
#5A22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5A22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A22A5
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A22A5#FFFFFF#000000##FFFFFF
##5A22A51.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#454763
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a22a5;
/* rgb */ color: rgb(90, 34, 165);
/* oklch */ color: oklch(41.6% 0.192 296.2);
Tailwind
colors: {
  custom: {
    50: '#9064c1',
    500: '#5a22a5',
    950: '#000000',
  },
}
SCSS
$custom: #5a22a5;
$custom-light: #9064c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a22a5",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 265.649,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41583,
    "c": 0.1918,
    "h": 296.2
  },
  "luminance": 0.06034
}

Semantic roles & 50–950 ramp

primary
#5A22A5
secondary
#99C45F
accent
#E93FA0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5A22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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