#5B22D3#5B22D3

#5B22D3 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.2% C 0.240 H 287.1°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5B22D3
RGBrgb(91, 34, 211)
HSLhsl(259, 72%, 48%)
HSVhsv(259, 84%, 83%)
CMYKcmyk(56.9%, 83.9%, 0%, 17.3%)
CIE-LABlab(34.13, 63.64, -79.60)
CIE-LCHlch(34.13, 101.92, 308.64°)
OKLaboklab(46.16% 0.0705 -0.2292)
OKLCHoklch(46.16% 0.24 287.1)
XYZxyz(16.6408, 8.0704, 62.2963)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B22D3 #9AD322
analogous
#2241D3 #5B22D3 #B322D3
triadic
#5B22D3 #D35B22 #22D35B
tetradic
#5B22D3 #D32241 #9AD322 #22D3B3
square
#5B22D3 #D32241 #9AD322 #22D3B3
split-complementary
#5B22D3 #D3B322 #41D322
monochromatic
#2E116A #441A9E #5B22D3 #7F4FE3 #A584EB

Accessibility & contrast

On white

8.03
#5B22D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5B22D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B22D3
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B22D3#FFFFFF#000000##FFFFFF
##5B22D31.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D8
Deuteranopia (green-blind)
#004BD0
Tritanopia (blue-blind)
#1F5A7E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b22d3;
/* rgb */ color: rgb(91, 34, 211);
/* oklch */ color: oklch(46.2% 0.240 287.1);
Tailwind
colors: {
  custom: {
    50: '#9767e2',
    500: '#5b22d3',
    950: '#000000',
  },
}
SCSS
$custom: #5b22d3;
$custom-light: #9767e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b22d3",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 211
  },
  "hsl": {
    "h": 259.322,
    "s": 72.245,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46158,
    "c": 0.23983,
    "h": 287.1
  },
  "luminance": 0.08071
}

Semantic roles & 50–950 ramp

primary
#5B22D3
secondary
#B8D47D
accent
#EF39B4
background
#FAF6FE
surface
#F4EBFC
border
#CEC6D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5B22D3

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

Preview Lab → · Contrast checker → · Palette generator →

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