#5F32C4#5F32C4

#5F32C4 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.210 H 289.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5F32C4
RGBrgb(95, 50, 196)
HSLhsl(258, 59%, 48%)
HSVhsv(258, 74%, 77%)
CMYKcmyk(51.5%, 74.5%, 0%, 23.1%)
CIE-LABlab(35.40, 53.50, -68.77)
CIE-LCHlch(35.40, 87.13, 307.88°)
OKLaboklab(46.7% 0.0711 -0.1976)
OKLCHoklch(46.7% 0.21 289.8)
XYZxyz(15.8208, 8.6989, 53.0593)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32C4 #97C432
analogous
#324EC4 #5F32C4 #A832C4
triadic
#5F32C4 #C45F32 #32C45F
tetradic
#5F32C4 #C4324E #97C432 #32C4A8
square
#5F32C4 #C4324E #97C432 #32C4A8
split-complementary
#5F32C4 #C4A832 #4EC432
monochromatic
#301962 #472693 #5F32C4 #835DD6 #A88EE2

Accessibility & contrast

On white

7.66
#5F32C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5F32C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32C4
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32C4#FFFFFF#000000##FFFFFF
##5F32C41.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#0050C1
Tritanopia (blue-blind)
#3A5A79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f32c4;
/* rgb */ color: rgb(95, 50, 196);
/* oklch */ color: oklch(46.7% 0.210 289.8);
Tailwind
colors: {
  custom: {
    50: '#966fd7',
    500: '#5f32c4',
    950: '#000000',
  },
}
SCSS
$custom: #5f32c4;
$custom-light: #966fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32c4",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 196
  },
  "hsl": {
    "h": 258.493,
    "s": 59.35,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46702,
    "c": 0.20999,
    "h": 289.8
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#5F32C4
secondary
#B7CD85
accent
#E345B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F32C4

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

Preview Lab → · Contrast checker → · Palette generator →

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