#5A22BD#5A22BD

#5A22BD is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.9% C 0.217 H 290.7°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#5A22BD
RGBrgb(90, 34, 189)
HSLhsl(262, 70%, 44%)
HSVhsv(262, 82%, 74%)
CMYKcmyk(52.4%, 82%, 0%, 25.9%)
CIE-LABlab(31.79, 57.90, -70.61)
CIE-LCHlch(31.79, 91.31, 309.35°)
OKLaboklab(43.86% 0.0769 -0.203)
OKLCHoklch(43.86% 0.217 290.7)
XYZxyz(13.9711, 6.9912, 48.7475)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A22BD #85BD22
analogous
#2238BD #5A22BD #A722BD
triadic
#5A22BD #BD5A22 #22BD5A
tetradic
#5A22BD #BD2238 #85BD22 #22BDA7
square
#5A22BD #BD2238 #85BD22 #22BDA7
split-complementary
#5A22BD #BDA722 #38BD22
monochromatic
#290F55 #411989 #5A22BD #7840DD #9D73E6

Accessibility & contrast

On white

8.76
#5A22BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5A22BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A22BD
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A22BD#FFFFFF#000000##FFFFFF
##5A22BD1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC1
Deuteranopia (green-blind)
#0047BA
Tritanopia (blue-blind)
#355171
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a22bd;
/* rgb */ color: rgb(90, 34, 189);
/* oklch */ color: oklch(43.9% 0.217 290.7);
Tailwind
colors: {
  custom: {
    50: '#9466d2',
    500: '#5a22bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a22bd;
$custom-light: #9466d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a22bd",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 189
  },
  "hsl": {
    "h": 261.677,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43861,
    "c": 0.21706,
    "h": 290.7
  },
  "luminance": 0.06992
}

Semantic roles & 50–950 ramp

primary
#5A22BD
secondary
#ABCD6E
accent
#EC3BAC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5A22BD

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

Preview Lab → · Contrast checker → · Palette generator →

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