#5A22A6#5A22A6

#5A22A6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.193 H 296.0°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#5A22A6
RGBrgb(90, 34, 166)
HSLhsl(265, 66%, 39%)
HSVhsv(265, 80%, 65%)
CMYKcmyk(45.8%, 79.5%, 0%, 34.9%)
CIE-LABlab(29.59, 52.00, -60.49)
CIE-LCHlch(29.59, 79.77, 310.68°)
OKLaboklab(41.67% 0.0845 -0.1734)
OKLCHoklch(41.67% 0.193 296)
XYZxyz(11.6696, 6.0706, 36.6259)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A22A6 #6EA622
analogous
#222CA6 #5A22A6 #9C22A6
triadic
#5A22A6 #A65A22 #22A65A
tetradic
#5A22A6 #A6222C #6EA622 #22A69C
square
#5A22A6 #A6222C #6EA622 #22A69C
split-complementary
#5A22A6 #A69C22 #2CA622
monochromatic
#230D40 #3E1873 #5A22A6 #7630D5 #9863DF

Accessibility & contrast

On white

9.48
#5A22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A22A6
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A22A6#FFFFFF#000000##FFFFFF
##5A22A61.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#454764
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a22a6;
/* rgb */ color: rgb(90, 34, 166);
/* oklch */ color: oklch(41.7% 0.193 296.0);
Tailwind
colors: {
  custom: {
    50: '#9064c1',
    500: '#5a22a6',
    950: '#000000',
  },
}
SCSS
$custom: #5a22a6;
$custom-light: #9064c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a22a6",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 265.455,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41674,
    "c": 0.19286,
    "h": 296
  },
  "luminance": 0.06071
}

Semantic roles & 50–950 ramp

primary
#5A22A6
secondary
#9AC45F
accent
#E93FA1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5A22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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