#5B33AB#5B33AB

#5B33AB is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.180 H 292.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5B33AB
RGBrgb(91, 51, 171)
HSLhsl(260, 54%, 44%)
HSVhsv(260, 70%, 67%)
CMYKcmyk(46.8%, 70.2%, 0%, 32.9%)
CIE-LABlab(32.99, 45.45, -57.93)
CIE-LCHlch(32.99, 73.63, 308.11°)
OKLaboklab(44.23% 0.0698 -0.1659)
OKLCHoklch(44.23% 0.18 292.8)
XYZxyz(12.8469, 7.5317, 39.2971)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B33AB #83AB33
analogous
#3347AB #5B33AB #9733AB
triadic
#5B33AB #AB5B33 #33AB5B
tetradic
#5B33AB #AB3347 #83AB33 #33AB97
square
#5B33AB #AB3347 #83AB33 #33AB97
split-complementary
#5B33AB #AB9733 #47AB33
monochromatic
#29174D #42257C #5B33AB #7950CB #9D7FD9

Accessibility & contrast

On white

8.38
#5B33AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5B33AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B33AB
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B33AB#FFFFFF#000000##FFFFFF
##5B33AB1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#43516B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b33ab;
/* rgb */ color: rgb(91, 51, 171);
/* oklch */ color: oklch(44.2% 0.180 292.8);
Tailwind
colors: {
  custom: {
    50: '#916ec5',
    500: '#5b33ab',
    950: '#000000',
  },
}
SCSS
$custom: #5b33ab;
$custom-light: #916ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b33ab",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 171
  },
  "hsl": {
    "h": 260,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4423,
    "c": 0.18003,
    "h": 292.8
  },
  "luminance": 0.07532
}

Semantic roles & 50–950 ramp

primary
#5B33AB
secondary
#A9C278
accent
#DD4AAC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B33AB

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

Preview Lab → · Contrast checker → · Palette generator →

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