#9F40CB#9F40CB

#9F40CB is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.2% C 0.212 H 313.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9F40CB
RGBrgb(159, 64, 203)
HSLhsl(281, 57%, 52%)
HSVhsv(281, 68%, 80%)
CMYKcmyk(21.7%, 68.5%, 0%, 20.4%)
CIE-LABlab(46.11, 60.60, -55.07)
CIE-LCHlch(46.11, 81.88, 317.74°)
OKLaboklab(56.2% 0.1448 -0.1553)
OKLCHoklch(56.2% 0.212 313)
XYZxyz(26.9091, 15.3503, 58.0337)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40CB #6CCB40
analogous
#5940CB #9F40CB #CB40B2
triadic
#9F40CB #CB9F40 #40CB9F
tetradic
#9F40CB #CB5940 #6CCB40 #40B2CB
square
#9F40CB #CB5940 #6CCB40 #40B2CB
split-complementary
#9F40CB #B2CB40 #40CB59
monochromatic
#571F72 #7C2CA2 #9F40CB #B770D8 #CFA0E5

Accessibility & contrast

On white

5.16
#9F40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9F40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40CB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40CB#FFFFFF#000000##FFFFFF
##9F40CB1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#356FC8
Tritanopia (blue-blind)
#9A5D81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9f40cb;
/* rgb */ color: rgb(159, 64, 203);
/* oklch */ color: oklch(56.2% 0.212 313.0);
Tailwind
colors: {
  custom: {
    50: '#bf7cdc',
    500: '#9f40cb',
    950: '#000000',
  },
}
SCSS
$custom: #9f40cb;
$custom-light: #bf7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40cb",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 281.007,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.56204,
    "c": 0.21233,
    "h": 313
  },
  "luminance": 0.1535
}

Semantic roles & 50–950 ramp

primary
#9F40CB
secondary
#A8D295
accent
#E04778
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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