#5B33C9#5B33C9

#5B33C9 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.215 H 287.1°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5B33C9
RGBrgb(91, 51, 201)
HSLhsl(256, 60%, 49%)
HSVhsv(256, 75%, 79%)
CMYKcmyk(54.7%, 74.6%, 0%, 21.2%)
CIE-LABlab(35.61, 53.83, -71.35)
CIE-LCHlch(35.61, 89.38, 307.03°)
OKLaboklab(46.89% 0.0632 -0.2053)
OKLCHoklch(46.89% 0.215 287.1)
XYZxyz(16.0377, 8.8080, 56.1021)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B33C9 #A1C933
analogous
#3356C9 #5B33C9 #A633C9
triadic
#5B33C9 #C95B33 #33C95B
tetradic
#5B33C9 #C93356 #A1C933 #33C9A6
square
#5B33C9 #C93356 #A1C933 #33C9A6
split-complementary
#5B33C9 #C9A633 #56C933
monochromatic
#2F1A67 #452798 #5B33C9 #8162D7 #A893E4

Accessibility & contrast

On white

7.60
#5B33C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5B33C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B33C9
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B33C9#FFFFFF#000000##FFFFFF
##5B33C91.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CD
Deuteranopia (green-blind)
#0050C6
Tritanopia (blue-blind)
#2B5D7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b33c9;
/* rgb */ color: rgb(91, 51, 201);
/* oklch */ color: oklch(46.9% 0.215 287.1);
Tailwind
colors: {
  custom: {
    50: '#956fdb',
    500: '#5b33c9',
    950: '#000000',
  },
}
SCSS
$custom: #5b33c9;
$custom-light: #956fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b33c9",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 201
  },
  "hsl": {
    "h": 256,
    "s": 59.524,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46894,
    "c": 0.2148,
    "h": 287.1
  },
  "luminance": 0.08809
}

Semantic roles & 50–950 ramp

primary
#5B33C9
secondary
#BCCF89
accent
#E345B9
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B33C9

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

Preview Lab → · Contrast checker → · Palette generator →

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