#5F32C2#5F32C2

#5F32C2 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.5% C 0.208 H 290.1°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5F32C2
RGBrgb(95, 50, 194)
HSLhsl(259, 59%, 48%)
HSVhsv(259, 74%, 76%)
CMYKcmyk(51%, 74.2%, 0%, 23.9%)
CIE-LABlab(35.22, 52.95, -67.89)
CIE-LCHlch(35.22, 86.10, 307.95°)
OKLaboklab(46.52% 0.0716 -0.195)
OKLCHoklch(46.52% 0.208 290.1)
XYZxyz(15.5947, 8.6085, 51.8684)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32C2 #95C232
analogous
#324DC2 #5F32C2 #A732C2
triadic
#5F32C2 #C25F32 #32C25F
tetradic
#5F32C2 #C2324D #95C232 #32C2A7
square
#5F32C2 #C2324D #95C232 #32C2A7
split-complementary
#5F32C2 #C2A732 #4DC232
monochromatic
#2F1961 #472591 #5F32C2 #825CD5 #A78DE2

Accessibility & contrast

On white

7.72
#5F32C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5F32C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32C2
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32C2#FFFFFF#000000##FFFFFF
##5F32C21.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#004FBF
Tritanopia (blue-blind)
#3C5978
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f32c2;
/* rgb */ color: rgb(95, 50, 194);
/* oklch */ color: oklch(46.5% 0.208 290.1);
Tailwind
colors: {
  custom: {
    50: '#966fd6',
    500: '#5f32c2',
    950: '#000000',
  },
}
SCSS
$custom: #5f32c2;
$custom-light: #966fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32c2",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 194
  },
  "hsl": {
    "h": 258.75,
    "s": 59.016,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46522,
    "c": 0.20774,
    "h": 290.1
  },
  "luminance": 0.08609
}

Semantic roles & 50–950 ramp

primary
#5F32C2
secondary
#B5CC84
accent
#E246B1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5F32C2

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

Preview Lab → · Contrast checker → · Palette generator →

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