#9F40CC#9F40CC

#9F40CC is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.3% C 0.213 H 312.7°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9F40CC
RGBrgb(159, 64, 204)
HSLhsl(281, 58%, 53%)
HSVhsv(281, 69%, 80%)
CMYKcmyk(22.1%, 68.6%, 0%, 20%)
CIE-LABlab(46.17, 60.81, -55.54)
CIE-LCHlch(46.17, 82.36, 317.59°)
OKLaboklab(56.27% 0.1447 -0.1567)
OKLCHoklch(56.27% 0.213 312.7)
XYZxyz(27.0286, 15.3981, 58.6634)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40CC #6DCC40
analogous
#5940CC #9F40CC #CC40B3
triadic
#9F40CC #CC9F40 #40CC9F
tetradic
#9F40CC #CC5940 #6DCC40 #40B3CC
square
#9F40CC #CC5940 #6DCC40 #40B3CC
split-complementary
#9F40CC #B3CC40 #40CC59
monochromatic
#581F73 #7D2CA3 #9F40CC #B770D9 #D0A1E6

Accessibility & contrast

On white

5.15
#9F40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9F40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40CC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40CC#FFFFFF#000000##FFFFFF
##9F40CC1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#346FC9
Tritanopia (blue-blind)
#9A5D81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9f40cc;
/* rgb */ color: rgb(159, 64, 204);
/* oklch */ color: oklch(56.3% 0.213 312.7);
Tailwind
colors: {
  custom: {
    50: '#bf7cdc',
    500: '#9f40cc',
    950: '#000000',
  },
}
SCSS
$custom: #9f40cc;
$custom-light: #bf7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40cc",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 280.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56271,
    "c": 0.21328,
    "h": 312.7
  },
  "luminance": 0.15397
}

Semantic roles & 50–950 ramp

primary
#9F40CC
secondary
#A9D295
accent
#E14778
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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