#9F40CE#9F40CE

#9F40CE is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.4% C 0.215 H 312.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9F40CE
RGBrgb(159, 64, 206)
HSLhsl(280, 59%, 53%)
HSVhsv(280, 69%, 81%)
CMYKcmyk(22.8%, 68.9%, 0%, 19.2%)
CIE-LABlab(46.30, 61.22, -56.49)
CIE-LCHlch(46.30, 83.30, 317.30°)
OKLaboklab(56.41% 0.1445 -0.1595)
OKLCHoklch(56.41% 0.215 312.2)
XYZxyz(27.2700, 15.4947, 59.9348)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40CE #6FCE40
analogous
#5840CE #9F40CE #CE40B6
triadic
#9F40CE #CE9F40 #40CE9F
tetradic
#9F40CE #CE5840 #6FCE40 #40B6CE
square
#9F40CE #CE5840 #6FCE40 #40B6CE
split-complementary
#9F40CE #B6CE40 #40CE58
monochromatic
#591E75 #7D2BA6 #9F40CE #B771DA #D0A1E7

Accessibility & contrast

On white

5.12
#9F40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9F40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40CE
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40CE#FFFFFF#000000##FFFFFF
##9F40CE1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#3170CB
Tritanopia (blue-blind)
#9A5E82
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9f40ce;
/* rgb */ color: rgb(159, 64, 206);
/* oklch */ color: oklch(56.4% 0.215 312.2);
Tailwind
colors: {
  custom: {
    50: '#c07cde',
    500: '#9f40ce',
    950: '#000000',
  },
}
SCSS
$custom: #9f40ce;
$custom-light: #c07cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40ce",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 280.141,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56405,
    "c": 0.2152,
    "h": 312.2
  },
  "luminance": 0.15494
}

Semantic roles & 50–950 ramp

primary
#9F40CE
secondary
#ABD496
accent
#E24579
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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