#5D32C5#5D32C5

#5D32C5 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.6% C 0.211 H 288.7°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5D32C5
RGBrgb(93, 50, 197)
HSLhsl(258, 60%, 48%)
HSVhsv(258, 75%, 77%)
CMYKcmyk(52.8%, 74.6%, 0%, 22.7%)
CIE-LABlab(35.28, 53.48, -69.56)
CIE-LCHlch(35.28, 87.74, 307.56°)
OKLaboklab(46.6% 0.0679 -0.2)
OKLCHoklch(46.6% 0.211 288.7)
XYZxyz(15.7299, 8.6388, 53.6511)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32C5 #9AC532
analogous
#3250C5 #5D32C5 #A632C5
triadic
#5D32C5 #C55D32 #32C55D
tetradic
#5D32C5 #C53250 #9AC532 #32C5A6
square
#5D32C5 #C53250 #9AC532 #32C5A6
split-complementary
#5D32C5 #C5A632 #50C532
monochromatic
#2F1963 #462694 #5D32C5 #815ED6 #A78FE3

Accessibility & contrast

On white

7.70
#5D32C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5D32C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32C5
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32C5#FFFFFF#000000##FFFFFF
##5D32C51.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#355B79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d32c5;
/* rgb */ color: rgb(93, 50, 197);
/* oklch */ color: oklch(46.6% 0.211 288.7);
Tailwind
colors: {
  custom: {
    50: '#956fd8',
    500: '#5d32c5',
    950: '#000000',
  },
}
SCSS
$custom: #5d32c5;
$custom-light: #956fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32c5",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 197
  },
  "hsl": {
    "h": 257.551,
    "s": 59.514,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46597,
    "c": 0.21117,
    "h": 288.7
  },
  "luminance": 0.0864
}

Semantic roles & 50–950 ramp

primary
#5D32C5
secondary
#B8CD86
accent
#E345B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5D32C5

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

Preview Lab → · Contrast checker → · Palette generator →

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