#9F32E1#9F32E1

#9F32E1 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.4% C 0.248 H 308.5°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9F32E1
RGBrgb(159, 50, 225)
HSLhsl(277, 74%, 54%)
HSVhsv(277, 78%, 88%)
CMYKcmyk(29.3%, 77.8%, 0%, 11.8%)
CIE-LABlab(45.76, 70.52, -68.25)
CIE-LCHlch(45.76, 98.14, 315.94°)
OKLaboklab(56.43% 0.1542 -0.1939)
OKLCHoklch(56.43% 0.248 308.5)
XYZxyz(29.0265, 15.0889, 72.6029)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F32E1 #74E132
analogous
#4832E1 #9F32E1 #E132CC
triadic
#9F32E1 #E19F32 #32E19F
tetradic
#9F32E1 #E14832 #74E132 #32CCE1
square
#9F32E1 #E14832 #74E132 #32CCE1
split-complementary
#9F32E1 #CCE132 #32E148
monochromatic
#5A1385 #7E1BBB #9F32E1 #B867E9 #D19DF1

Accessibility & contrast

On white

5.23
#9F32E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#9F32E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F32E1
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F32E1#FFFFFF#000000##FFFFFF
##9F32E11.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E6
Deuteranopia (green-blind)
#006DDE
Tritanopia (blue-blind)
#945F8A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9f32e1;
/* rgb */ color: rgb(159, 50, 225);
/* oklch */ color: oklch(56.4% 0.248 308.5);
Tailwind
colors: {
  custom: {
    50: '#c176eb',
    500: '#9f32e1',
    950: '#000000',
  },
}
SCSS
$custom: #9f32e1;
$custom-light: #c176eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f32e1",
  "rgb": {
    "r": 159,
    "g": 50,
    "b": 225
  },
  "hsl": {
    "h": 277.371,
    "s": 74.468,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56434,
    "c": 0.24774,
    "h": 308.5
  },
  "luminance": 0.15088
}

Semantic roles & 50–950 ramp

primary
#9F32E1
secondary
#AEDD92
accent
#F1377D
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9F32E1

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

Preview Lab → · Contrast checker → · Palette generator →

#9F32E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva