#5B32B7#5B32B7

#5B32B7 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.195 H 290.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5B32B7
RGBrgb(91, 50, 183)
HSLhsl(258, 57%, 46%)
HSVhsv(258, 73%, 72%)
CMYKcmyk(50.3%, 72.7%, 0%, 28.2%)
CIE-LABlab(33.82, 49.30, -63.71)
CIE-LCHlch(33.82, 80.56, 307.73°)
OKLaboklab(45.14% 0.0683 -0.1829)
OKLCHoklch(45.14% 0.195 290.5)
XYZxyz(13.9998, 7.9237, 45.5823)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32B7 #8EB732
analogous
#324BB7 #5B32B7 #9D32B7
triadic
#5B32B7 #B75B32 #32B75B
tetradic
#5B32B7 #B7324B #8EB732 #32B79D
square
#5B32B7 #B7324B #8EB732 #32B79D
split-complementary
#5B32B7 #B79D32 #4BB732
monochromatic
#2B1857 #432587 #5B32B7 #7B56D1 #A186DE

Accessibility & contrast

On white

8.12
#5B32B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5B32B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32B7
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32B7#FFFFFF#000000##FFFFFF
##5B32B71.008.122.588.12
#FFFFFF8.121.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b32b7;
/* rgb */ color: rgb(91, 50, 183);
/* oklch */ color: oklch(45.1% 0.195 290.5);
Tailwind
colors: {
  custom: {
    50: '#926ece',
    500: '#5b32b7',
    950: '#000000',
  },
}
SCSS
$custom: #5b32b7;
$custom-light: #926ece;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32b7",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 183
  },
  "hsl": {
    "h": 258.496,
    "s": 57.082,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45139,
    "c": 0.19524,
    "h": 290.5
  },
  "luminance": 0.07924
}

Semantic roles & 50–950 ramp

primary
#5B32B7
secondary
#B1C77D
accent
#E047B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B32B7

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

Preview Lab → · Contrast checker → · Palette generator →

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