#5B33B2#5B33B2

#5B33B2 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.188 H 291.3°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#5B33B2
RGBrgb(91, 51, 178)
HSLhsl(259, 55%, 45%)
HSVhsv(259, 71%, 70%)
CMYKcmyk(48.9%, 71.3%, 0%, 30.2%)
CIE-LABlab(33.57, 47.40, -61.15)
CIE-LCHlch(33.57, 77.37, 307.78°)
OKLaboklab(44.83% 0.0684 -0.1754)
OKLCHoklch(44.83% 0.188 291.3)
XYZxyz(13.5318, 7.8056, 42.9045)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B33B2 #8AB233
analogous
#334AB2 #5B33B2 #9B33B2
triadic
#5B33B2 #B25B33 #33B25B
tetradic
#5B33B2 #B2334A #8AB233 #33B29B
square
#5B33B2 #B2334A #8AB233 #33B29B
split-complementary
#5B33B2 #B29B33 #4AB233
monochromatic
#2A1853 #432582 #5B33B2 #7B54CE #9F84DC

Accessibility & contrast

On white

8.20
#5B33B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5B33B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B33B2
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B33B2#FFFFFF#000000##FFFFFF
##5B33B21.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#3F546F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b33b2;
/* rgb */ color: rgb(91, 51, 178);
/* oklch */ color: oklch(44.8% 0.188 291.3);
Tailwind
colors: {
  custom: {
    50: '#926eca',
    500: '#5b33b2',
    950: '#000000',
  },
}
SCSS
$custom: #5b33b2;
$custom-light: #926eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b33b2",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 178
  },
  "hsl": {
    "h": 258.898,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4483,
    "c": 0.18829,
    "h": 291.3
  },
  "luminance": 0.07806
}

Semantic roles & 50–950 ramp

primary
#5B33B2
secondary
#AEC57C
accent
#DF49B0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B33B2

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

Preview Lab → · Contrast checker → · Palette generator →

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