#5D32C2#5D32C2

#5D32C2 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.3% C 0.208 H 289.3°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#5D32C2
RGBrgb(93, 50, 194)
HSLhsl(258, 59%, 48%)
HSVhsv(258, 74%, 76%)
CMYKcmyk(52.1%, 74.2%, 0%, 23.9%)
CIE-LABlab(35.01, 52.66, -68.24)
CIE-LCHlch(35.01, 86.20, 307.65°)
OKLaboklab(46.32% 0.0686 -0.1961)
OKLCHoklch(46.32% 0.208 289.3)
XYZxyz(15.3896, 8.5027, 51.8588)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32C2 #97C232
analogous
#324FC2 #5D32C2 #A532C2
triadic
#5D32C2 #C25D32 #32C25D
tetradic
#5D32C2 #C2324F #97C232 #32C2A5
square
#5D32C2 #C2324F #97C232 #32C2A5
split-complementary
#5D32C2 #C2A532 #4FC232
monochromatic
#2E1961 #462591 #5D32C2 #805CD5 #A68DE2

Accessibility & contrast

On white

7.78
#5D32C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5D32C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32C2
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32C2#FFFFFF#000000##FFFFFF
##5D32C21.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#004FBF
Tritanopia (blue-blind)
#375978
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d32c2;
/* rgb */ color: rgb(93, 50, 194);
/* oklch */ color: oklch(46.3% 0.208 289.3);
Tailwind
colors: {
  custom: {
    50: '#956ed6',
    500: '#5d32c2',
    950: '#000000',
  },
}
SCSS
$custom: #5d32c2;
$custom-light: #956ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32c2",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 194
  },
  "hsl": {
    "h": 257.917,
    "s": 59.016,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46324,
    "c": 0.20779,
    "h": 289.3
  },
  "luminance": 0.08503
}

Semantic roles & 50–950 ramp

primary
#5D32C2
secondary
#B6CC84
accent
#E246B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5D32C2

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

Preview Lab → · Contrast checker → · Palette generator →

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