#5A32BF#5A32BF

#5A32BF is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.204 H 288.5°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5A32BF
RGBrgb(90, 50, 191)
HSLhsl(257, 59%, 47%)
HSVhsv(257, 74%, 75%)
CMYKcmyk(52.9%, 73.8%, 0%, 25.1%)
CIE-LABlab(34.43, 51.38, -67.45)
CIE-LCHlch(34.43, 84.79, 307.30°)
OKLaboklab(45.76% 0.0649 -0.1939)
OKLCHoklch(45.76% 0.204 288.5)
XYZxyz(14.7583, 8.2157, 50.0883)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32BF #97BF32
analogous
#3251BF #5A32BF #A032BF
triadic
#5A32BF #BF5A32 #32BF5A
tetradic
#5A32BF #BF3251 #97BF32 #32BFA0
square
#5A32BF #BF3251 #97BF32 #32BFA0
split-complementary
#5A32BF #BFA032 #51BF32
monochromatic
#2C195E #43258E #5A32BF #7D5AD4 #A38BE1

Accessibility & contrast

On white

7.94
#5A32BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5A32BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32BF
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32BF#FFFFFF#000000##FFFFFF
##5A32BF1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#004DBC
Tritanopia (blue-blind)
#335876
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a32bf;
/* rgb */ color: rgb(90, 50, 191);
/* oklch */ color: oklch(45.8% 0.204 288.5);
Tailwind
colors: {
  custom: {
    50: '#936ed3',
    500: '#5a32bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a32bf;
$custom-light: #936ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32bf",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 191
  },
  "hsl": {
    "h": 257.021,
    "s": 58.506,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4576,
    "c": 0.20448,
    "h": 288.5
  },
  "luminance": 0.08216
}

Semantic roles & 50–950 ramp

primary
#5A32BF
secondary
#B6CB82
accent
#E246B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A32BF

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

Preview Lab → · Contrast checker → · Palette generator →

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