#5B33B7#5B33B7

#5B33B7 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.194 H 290.3°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5B33B7
RGBrgb(91, 51, 183)
HSLhsl(258, 56%, 46%)
HSVhsv(258, 72%, 72%)
CMYKcmyk(50.3%, 72.1%, 0%, 28.2%)
CIE-LABlab(34.00, 48.79, -63.42)
CIE-LCHlch(34.00, 80.02, 307.58°)
OKLaboklab(45.27% 0.0674 -0.182)
OKLCHoklch(45.27% 0.194 290.3)
XYZxyz(14.0430, 8.0101, 45.5967)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B33B7 #8FB733
analogous
#334DB7 #5B33B7 #9D33B7
triadic
#5B33B7 #B75B33 #33B75B
tetradic
#5B33B7 #B7334D #8FB733 #33B79D
square
#5B33B7 #B7334D #8FB733 #33B79D
split-complementary
#5B33B7 #B79D33 #4DB733
monochromatic
#2B1857 #432687 #5B33B7 #7C57D0 #A187DE

Accessibility & contrast

On white

8.07
#5B33B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5B33B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B33B7
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B33B7#FFFFFF#000000##FFFFFF
##5B33B71.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#004DB4
Tritanopia (blue-blind)
#3B5672
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b33b7;
/* rgb */ color: rgb(91, 51, 183);
/* oklch */ color: oklch(45.3% 0.194 290.3);
Tailwind
colors: {
  custom: {
    50: '#926ece',
    500: '#5b33b7',
    950: '#000000',
  },
}
SCSS
$custom: #5b33b7;
$custom-light: #926ece;
$custom-dark: #000000;
JSON
{
  "hex": "#5b33b7",
  "rgb": {
    "r": 91,
    "g": 51,
    "b": 183
  },
  "hsl": {
    "h": 258.182,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45267,
    "c": 0.19413,
    "h": 290.3
  },
  "luminance": 0.08011
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B33B7

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

Preview Lab → · Contrast checker → · Palette generator →

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