#5F32C6#5F32C6

#5F32C6 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.212 H 289.4°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5F32C6
RGBrgb(95, 50, 198)
HSLhsl(258, 60%, 49%)
HSVhsv(258, 75%, 78%)
CMYKcmyk(52%, 74.7%, 0%, 22.4%)
CIE-LABlab(35.58, 54.05, -69.64)
CIE-LCHlch(35.58, 88.15, 307.81°)
OKLaboklab(46.88% 0.0706 -0.2002)
OKLCHoklch(46.88% 0.212 289.4)
XYZxyz(16.0500, 8.7906, 54.2662)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32C6 #99C632
analogous
#324FC6 #5F32C6 #A932C6
triadic
#5F32C6 #C65F32 #32C65F
tetradic
#5F32C6 #C6324F #99C632 #32C6A9
square
#5F32C6 #C6324F #99C632 #32C6A9
split-complementary
#5F32C6 #C6A932 #4FC632
monochromatic
#301964 #482695 #5F32C6 #835FD7 #A990E3

Accessibility & contrast

On white

7.61
#5F32C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5F32C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32C6
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32C6#FFFFFF#000000##FFFFFF
##5F32C61.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CA
Deuteranopia (green-blind)
#0050C3
Tritanopia (blue-blind)
#395B7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f32c6;
/* rgb */ color: rgb(95, 50, 198);
/* oklch */ color: oklch(46.9% 0.212 289.4);
Tailwind
colors: {
  custom: {
    50: '#976fd8',
    500: '#5f32c6',
    950: '#000000',
  },
}
SCSS
$custom: #5f32c6;
$custom-light: #976fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32c6",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 198
  },
  "hsl": {
    "h": 258.243,
    "s": 59.677,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46883,
    "c": 0.21223,
    "h": 289.4
  },
  "luminance": 0.08791
}

Semantic roles & 50–950 ramp

primary
#5F32C6
secondary
#B8CD86
accent
#E345B3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F32C6

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

Preview Lab → · Contrast checker → · Palette generator →

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