#5B33BB#5B33BB

#5B33BB is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.199 H 289.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5B33BB
RGBrgb(91, 51, 187)
HSLhsl(258, 57%, 47%)
HSVhsv(258, 73%, 73%)
CMYKcmyk(51.3%, 72.7%, 0%, 26.7%)
CIE-LABlab(34.35, 49.91, -65.21)
CIE-LCHlch(34.35, 82.12, 307.43°)
OKLaboklab(45.62% 0.0665 -0.1873)
OKLCHoklch(45.62% 0.199 289.6)
XYZxyz(14.4653, 8.1790, 47.8206)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B33BB #93BB33
analogous
#334FBB #5B33BB #9F33BB
triadic
#5B33BB #BB5B33 #33BB5B
tetradic
#5B33BB #BB334F #93BB33 #33BB9F
square
#5B33BB #BB334F #93BB33 #33BB9F
split-complementary
#5B33BB #BB9F33 #4FBB33
monochromatic
#2C195B #44268B #5B33BB #7D59D2 #A389DF

Accessibility & contrast

On white

7.97
#5B33BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5B33BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B33BB
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B33BB#FFFFFF#000000##FFFFFF
##5B33BB1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BF
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#385774
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b33bb;
/* rgb */ color: rgb(91, 51, 187);
/* oklch */ color: oklch(45.6% 0.199 289.6);
Tailwind
colors: {
  custom: {
    50: '#936ed1',
    500: '#5b33bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b33bb;
$custom-light: #936ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b33bb",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 187
  },
  "hsl": {
    "h": 257.647,
    "s": 57.143,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45622,
    "c": 0.19877,
    "h": 289.6
  },
  "luminance": 0.0818
}

Semantic roles & 50–950 ramp

primary
#5B33BB
secondary
#B4C981
accent
#E047B3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B33BB

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

Preview Lab → · Contrast checker → · Palette generator →

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