#5B32DB#5B32DB

#5B32DB is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.236 H 284.5°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5B32DB
RGBrgb(91, 50, 219)
HSLhsl(255, 70%, 53%)
HSVhsv(255, 77%, 86%)
CMYKcmyk(58.4%, 77.2%, 0%, 14.1%)
CIE-LABlab(37.15, 59.30, -79.23)
CIE-LCHlch(37.15, 98.96, 306.81°)
OKLaboklab(48.48% 0.059 -0.2283)
OKLCHoklch(48.48% 0.236 284.5)
XYZxyz(18.2373, 9.6187, 67.8997)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32DB #B2DB32
analogous
#325EDB #5B32DB #AF32DB
triadic
#5B32DB #DB5B32 #32DB5B
tetradic
#5B32DB #DB325E #B2DB32 #32DBAF
square
#5B32DB #DB325E #B2DB32 #32DBAF
split-complementary
#5B32DB #DBAF32 #5EDB32
monochromatic
#2F167D #421FB1 #5B32DB #8566E4 #AE9AED

Accessibility & contrast

On white

7.18
#5B32DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5B32DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32DB
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32DB#FFFFFF#000000##FFFFFF
##5B32DB1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE0
Deuteranopia (green-blind)
#0052D8
Tritanopia (blue-blind)
#076386
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b32db;
/* rgb */ color: rgb(91, 50, 219);
/* oklch */ color: oklch(48.5% 0.236 284.5);
Tailwind
colors: {
  custom: {
    50: '#986fe8',
    500: '#5b32db',
    950: '#000000',
  },
}
SCSS
$custom: #5b32db;
$custom-light: #986fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32db",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 219
  },
  "hsl": {
    "h": 254.556,
    "s": 70.124,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48484,
    "c": 0.23585,
    "h": 284.5
  },
  "luminance": 0.0962
}

Semantic roles & 50–950 ramp

primary
#5B32DB
secondary
#C7D990
accent
#ED3BC2
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B32DB

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

Preview Lab → · Contrast checker → · Palette generator →

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