#5B22A6#5B22A6

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

Color values

HEX#5B22A6
RGBrgb(91, 34, 166)
HSLhsl(266, 66%, 39%)
HSVhsv(266, 80%, 65%)
CMYKcmyk(45.2%, 79.5%, 0%, 34.9%)
CIE-LABlab(29.72, 52.15, -60.28)
CIE-LCHlch(29.72, 79.71, 310.87°)
OKLaboklab(41.79% 0.086 -0.1727)
OKLCHoklch(41.79% 0.193 296.5)
XYZxyz(11.7675, 6.1211, 36.6305)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B22A6 #6DA622
analogous
#222BA6 #5B22A6 #9D22A6
triadic
#5B22A6 #A65B22 #22A65B
tetradic
#5B22A6 #A6222B #6DA622 #22A69D
square
#5B22A6 #A6222B #6DA622 #22A69D
split-complementary
#5B22A6 #A69D22 #2BA622
monochromatic
#230D40 #3F1873 #5B22A6 #7730D5 #9963DF

Accessibility & contrast

On white

9.44
#5B22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B22A6
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B22A6#FFFFFF#000000##FFFFFF
##5B22A61.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b22a6;
/* rgb */ color: rgb(91, 34, 166);
/* oklch */ color: oklch(41.8% 0.193 296.5);
Tailwind
colors: {
  custom: {
    50: '#9164c1',
    500: '#5b22a6',
    950: '#000000',
  },
}
SCSS
$custom: #5b22a6;
$custom-light: #9164c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b22a6",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 265.909,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4179,
    "c": 0.19295,
    "h": 296.5
  },
  "luminance": 0.06121
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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