#5B32A3#5B32A3

#5B32A3 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.172 H 294.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5B32A3
RGBrgb(91, 50, 163)
HSLhsl(262, 53%, 42%)
HSVhsv(262, 69%, 64%)
CMYKcmyk(44.2%, 69.3%, 0%, 36.1%)
CIE-LABlab(32.14, 43.76, -54.50)
CIE-LCHlch(32.14, 69.89, 308.76°)
OKLaboklab(43.43% 0.0722 -0.1559)
OKLCHoklch(43.43% 0.172 294.8)
XYZxyz(12.0641, 7.1494, 35.3876)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B32A3 #7AA332
analogous
#3242A3 #5B32A3 #9432A3
triadic
#5B32A3 #A35B32 #32A35B
tetradic
#5B32A3 #A33242 #7AA332 #32A394
square
#5B32A3 #A33242 #7AA332 #32A394
split-complementary
#5B32A3 #A39432 #42A332
monochromatic
#271545 #412474 #5B32A3 #784BC8 #9B79D6

Accessibility & contrast

On white

8.64
#5B32A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5B32A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B32A3
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B32A3#FFFFFF#000000##FFFFFF
##5B32A31.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#004AA1
Tritanopia (blue-blind)
#474E66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b32a3;
/* rgb */ color: rgb(91, 50, 163);
/* oklch */ color: oklch(43.4% 0.172 294.8);
Tailwind
colors: {
  custom: {
    50: '#906dbf',
    500: '#5b32a3',
    950: '#000000',
  },
}
SCSS
$custom: #5b32a3;
$custom-light: #906dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b32a3",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 163
  },
  "hsl": {
    "h": 261.77,
    "s": 53.052,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43425,
    "c": 0.17176,
    "h": 294.8
  },
  "luminance": 0.0715
}

Semantic roles & 50–950 ramp

primary
#5B32A3
secondary
#A3BF72
accent
#DC4BA8
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B32A3

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

Preview Lab → · Contrast checker → · Palette generator →

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