#5A22A0#5A22A0

#5A22A0 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.186 H 297.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5A22A0
RGBrgb(90, 34, 160)
HSLhsl(267, 65%, 38%)
HSVhsv(267, 79%, 63%)
CMYKcmyk(43.7%, 78.8%, 0%, 37.3%)
CIE-LABlab(29.05, 50.47, -57.75)
CIE-LCHlch(29.05, 76.70, 311.15°)
OKLaboklab(41.13% 0.0862 -0.1653)
OKLCHoklch(41.13% 0.186 297.5)
XYZxyz(11.1320, 5.8556, 33.7946)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A22A0 #68A022
analogous
#2229A0 #5A22A0 #9922A0
triadic
#5A22A0 #A05A22 #22A05A
tetradic
#5A22A0 #A02229 #68A022 #22A099
square
#5A22A0 #A02229 #68A022 #22A099
split-complementary
#5A22A0 #A09922 #29A022
monochromatic
#210D3B #3E176E #5A22A0 #762DD2 #975FDD

Accessibility & contrast

On white

9.67
#5A22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5A22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A22A0
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A22A0#FFFFFF#000000##FFFFFF
##5A22A01.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#484561
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a22a0;
/* rgb */ color: rgb(90, 34, 160);
/* oklch */ color: oklch(41.1% 0.186 297.5);
Tailwind
colors: {
  custom: {
    50: '#9064bd',
    500: '#5a22a0',
    950: '#000000',
  },
}
SCSS
$custom: #5a22a0;
$custom-light: #9064bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a22a0",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 266.667,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41128,
    "c": 0.18648,
    "h": 297.5
  },
  "luminance": 0.05856
}

Semantic roles & 50–950 ramp

primary
#5A22A0
secondary
#95C25C
accent
#E8409D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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