#5B32AF#5B32AF

#5B32AF is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.186 H 292.1°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#5B32AF
RGBrgb(91, 50, 175)
HSLhsl(260, 56%, 44%)
HSVhsv(260, 71%, 69%)
CMYKcmyk(48%, 71.4%, 0%, 31.4%)
CIE-LABlab(33.14, 47.08, -60.08)
CIE-LCHlch(33.14, 76.33, 308.08°)
OKLaboklab(44.44% 0.07 -0.1723)
OKLCHoklch(44.44% 0.186 292.1)
XYZxyz(13.1907, 7.6000, 41.3211)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32AF #86AF32
analogous
#3248AF #5B32AF #9A32AF
triadic
#5B32AF #AF5B32 #32AF5B
tetradic
#5B32AF #AF3248 #86AF32 #32AF9A
square
#5B32AF #AF3248 #86AF32 #32AF9A
split-complementary
#5B32AF #AF9A32 #48AF32
monochromatic
#291750 #42247F #5B32AF #7A51CD #9E81DB

Accessibility & contrast

On white

8.33
#5B32AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5B32AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32AF
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32AF#FFFFFF#000000##FFFFFF
##5B32AF1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#41526D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b32af;
/* rgb */ color: rgb(91, 50, 175);
/* oklch */ color: oklch(44.4% 0.186 292.1);
Tailwind
colors: {
  custom: {
    50: '#916dc8',
    500: '#5b32af',
    950: '#000000',
  },
}
SCSS
$custom: #5b32af;
$custom-light: #916dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32af",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 175
  },
  "hsl": {
    "h": 259.68,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44439,
    "c": 0.18593,
    "h": 292.1
  },
  "luminance": 0.076
}

Semantic roles & 50–950 ramp

primary
#5B32AF
secondary
#ABC479
accent
#DF49AE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B32AF

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

Preview Lab → · Contrast checker → · Palette generator →

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