#5F32C5#5F32C5

#5F32C5 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.8% C 0.211 H 289.6°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5F32C5
RGBrgb(95, 50, 197)
HSLhsl(258, 60%, 48%)
HSVhsv(258, 75%, 77%)
CMYKcmyk(51.8%, 74.6%, 0%, 22.7%)
CIE-LABlab(35.49, 53.77, -69.21)
CIE-LCHlch(35.49, 87.64, 307.85°)
OKLaboklab(46.79% 0.0708 -0.1989)
OKLCHoklch(46.79% 0.211 289.6)
XYZxyz(15.9350, 8.7446, 53.6607)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32C5 #98C532
analogous
#324FC5 #5F32C5 #A832C5
triadic
#5F32C5 #C55F32 #32C55F
tetradic
#5F32C5 #C5324F #98C532 #32C5A8
square
#5F32C5 #C5324F #98C532 #32C5A8
split-complementary
#5F32C5 #C5A832 #4FC532
monochromatic
#301963 #472694 #5F32C5 #835ED6 #A88FE3

Accessibility & contrast

On white

7.64
#5F32C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5F32C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32C5
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32C5#FFFFFF#000000##FFFFFF
##5F32C51.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0050C2
Tritanopia (blue-blind)
#395A79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f32c5;
/* rgb */ color: rgb(95, 50, 197);
/* oklch */ color: oklch(46.8% 0.211 289.6);
Tailwind
colors: {
  custom: {
    50: '#976fd8',
    500: '#5f32c5',
    950: '#000000',
  },
}
SCSS
$custom: #5f32c5;
$custom-light: #976fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32c5",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 197
  },
  "hsl": {
    "h": 258.367,
    "s": 59.514,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46793,
    "c": 0.21111,
    "h": 289.6
  },
  "luminance": 0.08745
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F32C5

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

Preview Lab → · Contrast checker → · Palette generator →

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