#5B33C3#5B33C3

#5B33C3 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.3% C 0.208 H 288.1°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5B33C3
RGBrgb(91, 51, 195)
HSLhsl(257, 59%, 48%)
HSVhsv(257, 74%, 76%)
CMYKcmyk(53.3%, 73.8%, 0%, 23.5%)
CIE-LABlab(35.07, 52.15, -68.74)
CIE-LCHlch(35.07, 86.29, 307.18°)
OKLaboklab(46.34% 0.0647 -0.1977)
OKLCHoklch(46.34% 0.208 288.1)
XYZxyz(15.3456, 8.5312, 52.4573)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B33C3 #9BC333
analogous
#3353C3 #5B33C3 #A333C3
triadic
#5B33C3 #C35B33 #33C35B
tetradic
#5B33C3 #C33353 #9BC333 #33C3A3
square
#5B33C3 #C33353 #9BC333 #33C3A3
split-complementary
#5B33C3 #C3A333 #53C333
monochromatic
#2E1A62 #442692 #5B33C3 #7F5ED5 #A68FE2

Accessibility & contrast

On white

7.76
#5B33C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5B33C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B33C3
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B33C3#FFFFFF#000000##FFFFFF
##5B33C31.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C7
Deuteranopia (green-blind)
#004FC0
Tritanopia (blue-blind)
#315A78
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b33c3;
/* rgb */ color: rgb(91, 51, 195);
/* oklch */ color: oklch(46.3% 0.208 288.1);
Tailwind
colors: {
  custom: {
    50: '#946fd6',
    500: '#5b33c3',
    950: '#000000',
  },
}
SCSS
$custom: #5b33c3;
$custom-light: #946fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b33c3",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 195
  },
  "hsl": {
    "h": 256.667,
    "s": 58.537,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46343,
    "c": 0.20798,
    "h": 288.1
  },
  "luminance": 0.08532
}

Semantic roles & 50–950 ramp

primary
#5B33C3
secondary
#B9CC86
accent
#E246B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B33C3

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

Preview Lab → · Contrast checker → · Palette generator →

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