#5B22BC#5B22BC

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

Color values

HEX#5B22BC
RGBrgb(91, 34, 188)
HSLhsl(262, 69%, 44%)
HSVhsv(262, 82%, 74%)
CMYKcmyk(51.6%, 81.9%, 0%, 26.3%)
CIE-LABlab(31.80, 57.76, -69.99)
CIE-LCHlch(31.80, 90.75, 309.53°)
OKLaboklab(43.87% 0.0788 -0.2012)
OKLCHoklch(43.87% 0.216 291.4)
XYZxyz(13.9609, 6.9985, 48.1824)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B22BC #83BC22
analogous
#2236BC #5B22BC #A822BC
triadic
#5B22BC #BC5B22 #22BC5B
tetradic
#5B22BC #BC2236 #83BC22 #22BCA8
square
#5B22BC #BC2236 #83BC22 #22BCA8
split-complementary
#5B22BC #BCA822 #36BC22
monochromatic
#290F54 #421988 #5B22BC #793FDC #9D73E6

Accessibility & contrast

On white

8.75
#5B22BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B22BC
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B22BC#FFFFFF#000000##FFFFFF
##5B22BC1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0047B9
Tritanopia (blue-blind)
#385071
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b22bc;
/* rgb */ color: rgb(91, 34, 188);
/* oklch */ color: oklch(43.9% 0.216 291.4);
Tailwind
colors: {
  custom: {
    50: '#9466d1',
    500: '#5b22bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b22bc;
$custom-light: #9466d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b22bc",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 188
  },
  "hsl": {
    "h": 262.208,
    "s": 69.369,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43869,
    "c": 0.21603,
    "h": 291.4
  },
  "luminance": 0.06999
}

Semantic roles & 50–950 ramp

primary
#5B22BC
secondary
#A9CD6D
accent
#EC3CAB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5B22BC

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

Preview Lab → · Contrast checker → · Palette generator →

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