#9F40CD#9F40CD

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

Color values

HEX#9F40CD
RGBrgb(159, 64, 205)
HSLhsl(280, 59%, 53%)
HSVhsv(280, 69%, 80%)
CMYKcmyk(22.4%, 68.8%, 0%, 19.6%)
CIE-LABlab(46.24, 61.01, -56.02)
CIE-LCHlch(46.24, 82.83, 317.45°)
OKLaboklab(56.34% 0.1446 -0.1581)
OKLCHoklch(56.34% 0.214 312.5)
XYZxyz(27.1489, 15.4463, 59.2970)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40CD #6ECD40
analogous
#5940CD #9F40CD #CD40B4
triadic
#9F40CD #CD9F40 #40CD9F
tetradic
#9F40CD #CD5940 #6ECD40 #40B4CD
square
#9F40CD #CD5940 #6ECD40 #40B4CD
split-complementary
#9F40CD #B4CD40 #40CD59
monochromatic
#581E74 #7D2BA5 #9F40CD #B771DA #D0A1E6

Accessibility & contrast

On white

5.14
#9F40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9F40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40CD
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40CD#FFFFFF#000000##FFFFFF
##9F40CD1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#3270CA
Tritanopia (blue-blind)
#9A5D82
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9f40cd;
/* rgb */ color: rgb(159, 64, 205);
/* oklch */ color: oklch(56.3% 0.214 312.5);
Tailwind
colors: {
  custom: {
    50: '#bf7cdd',
    500: '#9f40cd',
    950: '#000000',
  },
}
SCSS
$custom: #9f40cd;
$custom-light: #bf7cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40cd",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 280.426,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56338,
    "c": 0.21424,
    "h": 312.5
  },
  "luminance": 0.15445
}

Semantic roles & 50–950 ramp

primary
#9F40CD
secondary
#AAD396
accent
#E24679
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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