#5B33B8#5B33B8

#5B33B8 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.195 H 290.1°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5B33B8
RGBrgb(91, 51, 184)
HSLhsl(258, 57%, 46%)
HSVhsv(258, 72%, 72%)
CMYKcmyk(50.5%, 72.3%, 0%, 27.8%)
CIE-LABlab(34.09, 49.07, -63.87)
CIE-LCHlch(34.09, 80.54, 307.54°)
OKLaboklab(45.36% 0.0672 -0.1834)
OKLCHoklch(45.36% 0.195 290.1)
XYZxyz(14.1475, 8.0519, 46.1468)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B33B8 #90B833
analogous
#334DB8 #5B33B8 #9D33B8
triadic
#5B33B8 #B85B33 #33B85B
tetradic
#5B33B8 #B8334D #90B833 #33B89D
square
#5B33B8 #B8334D #90B833 #33B89D
split-complementary
#5B33B8 #B89D33 #4DB833
monochromatic
#2C1858 #432688 #5B33B8 #7C58D1 #A188DE

Accessibility & contrast

On white

8.04
#5B33B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5B33B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B33B8
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B33B8#FFFFFF#000000##FFFFFF
##5B33B81.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#3B5672
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b33b8;
/* rgb */ color: rgb(91, 51, 184);
/* oklch */ color: oklch(45.4% 0.195 290.1);
Tailwind
colors: {
  custom: {
    50: '#926ece',
    500: '#5b33b8',
    950: '#000000',
  },
}
SCSS
$custom: #5b33b8;
$custom-light: #926ece;
$custom-dark: #000000;
JSON
{
  "hex": "#5b33b8",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 184
  },
  "hsl": {
    "h": 258.045,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45356,
    "c": 0.19529,
    "h": 290.1
  },
  "luminance": 0.08052
}

Semantic roles & 50–950 ramp

primary
#5B33B8
secondary
#B2C87F
accent
#E048B2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B33B8

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

Preview Lab → · Contrast checker → · Palette generator →

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