#5D32C1#5D32C1

#5D32C1 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.2% C 0.207 H 289.5°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5D32C1
RGBrgb(93, 50, 193)
HSLhsl(258, 59%, 48%)
HSVhsv(258, 74%, 76%)
CMYKcmyk(51.8%, 74.1%, 0%, 24.3%)
CIE-LABlab(34.92, 52.38, -67.80)
CIE-LCHlch(34.92, 85.68, 307.69°)
OKLaboklab(46.23% 0.0689 -0.1948)
OKLCHoklch(46.23% 0.207 289.5)
XYZxyz(15.2777, 8.4579, 51.2693)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32C1 #96C132
analogous
#324EC1 #5D32C1 #A532C1
triadic
#5D32C1 #C15D32 #32C15D
tetradic
#5D32C1 #C1324E #96C132 #32C1A5
square
#5D32C1 #C1324E #96C132 #32C1A5
split-complementary
#5D32C1 #C1A532 #4EC132
monochromatic
#2E1960 #462590 #5D32C1 #805CD5 #A68CE1

Accessibility & contrast

On white

7.80
#5D32C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5D32C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32C1
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32C1#FFFFFF#000000##FFFFFF
##5D32C11.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C5
Deuteranopia (green-blind)
#004FBE
Tritanopia (blue-blind)
#385977
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d32c1;
/* rgb */ color: rgb(93, 50, 193);
/* oklch */ color: oklch(46.2% 0.207 289.5);
Tailwind
colors: {
  custom: {
    50: '#956ed5',
    500: '#5d32c1',
    950: '#000000',
  },
}
SCSS
$custom: #5d32c1;
$custom-light: #956ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32c1",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 193
  },
  "hsl": {
    "h": 258.042,
    "s": 58.848,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46233,
    "c": 0.20665,
    "h": 289.5
  },
  "luminance": 0.08459
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D32C1

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

Preview Lab → · Contrast checker → · Palette generator →

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