#5B33CC#5B33CC

#5B33CC is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.218 H 286.6°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5B33CC
RGBrgb(91, 51, 204)
HSLhsl(256, 60%, 50%)
HSVhsv(256, 75%, 80%)
CMYKcmyk(55.4%, 75%, 0%, 20%)
CIE-LABlab(35.89, 54.67, -72.64)
CIE-LCHlch(35.89, 90.91, 306.96°)
OKLaboklab(47.17% 0.0624 -0.2091)
OKLCHoklch(47.17% 0.218 286.6)
XYZxyz(16.3940, 8.9505, 57.9788)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B33CC #A4CC33
analogous
#3358CC #5B33CC #A733CC
triadic
#5B33CC #CC5B33 #33CC5B
tetradic
#5B33CC #CC3358 #A4CC33 #33CCA7
square
#5B33CC #CC3358 #A4CC33 #33CCA7
split-complementary
#5B33CC #CCA733 #58CC33
monochromatic
#2F1B6A #45279B #5B33CC #8264D8 #AA95E4

Accessibility & contrast

On white

7.53
#5B33CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5B33CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B33CC
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B33CC#FFFFFF#000000##FFFFFF
##5B33CC1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D0
Deuteranopia (green-blind)
#0050C9
Tritanopia (blue-blind)
#285E7E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b33cc;
/* rgb */ color: rgb(91, 51, 204);
/* oklch */ color: oklch(47.2% 0.218 286.6);
Tailwind
colors: {
  custom: {
    50: '#956fdd',
    500: '#5b33cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b33cc;
$custom-light: #956fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b33cc",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 204
  },
  "hsl": {
    "h": 255.686,
    "s": 60,
    "l": 50
  },
  "oklch": {
    "l": 0.47173,
    "c": 0.2182,
    "h": 286.6
  },
  "luminance": 0.08951
}

Semantic roles & 50–950 ramp

primary
#5B33CC
secondary
#BED08B
accent
#E345BA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B33CC

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

Preview Lab → · Contrast checker → · Palette generator →

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