#5B22BD#5B22BD

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

Color values

HEX#5B22BD
RGBrgb(91, 34, 189)
HSLhsl(262, 70%, 44%)
HSVhsv(262, 82%, 74%)
CMYKcmyk(51.9%, 82%, 0%, 25.9%)
CIE-LABlab(31.90, 58.02, -70.42)
CIE-LCHlch(31.90, 91.24, 309.49°)
OKLaboklab(43.97% 0.0784 -0.2024)
OKLCHoklch(43.97% 0.217 291.2)
XYZxyz(14.0691, 7.0417, 48.7521)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B22BD #84BD22
analogous
#2236BD #5B22BD #A822BD
triadic
#5B22BD #BD5B22 #22BD5B
tetradic
#5B22BD #BD2236 #84BD22 #22BDA8
square
#5B22BD #BD2236 #84BD22 #22BDA8
split-complementary
#5B22BD #BDA822 #36BD22
monochromatic
#290F55 #421989 #5B22BD #7940DD #9E73E6

Accessibility & contrast

On white

8.72
#5B22BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5B22BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B22BD
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B22BD#FFFFFF#000000##FFFFFF
##5B22BD1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b22bd;
/* rgb */ color: rgb(91, 34, 189);
/* oklch */ color: oklch(44.0% 0.217 291.2);
Tailwind
colors: {
  custom: {
    50: '#9466d2',
    500: '#5b22bd',
    950: '#000000',
  },
}
SCSS
$custom: #5b22bd;
$custom-light: #9466d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b22bd",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 189
  },
  "hsl": {
    "h": 262.065,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43966,
    "c": 0.21707,
    "h": 291.2
  },
  "luminance": 0.07042
}

Semantic roles & 50–950 ramp

primary
#5B22BD
secondary
#AACD6E
accent
#EC3BAB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5B22BD

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

Preview Lab → · Contrast checker → · Palette generator →

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