#9F40C7#9F40C7

#9F40C7 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 55.9% C 0.208 H 314.1°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9F40C7
RGBrgb(159, 64, 199)
HSLhsl(282, 55%, 52%)
HSVhsv(282, 68%, 78%)
CMYKcmyk(20.1%, 67.8%, 0%, 22%)
CIE-LABlab(45.86, 59.77, -53.17)
CIE-LCHlch(45.86, 80.00, 318.35°)
OKLaboklab(55.94% 0.1451 -0.1497)
OKLCHoklch(55.94% 0.209 314.1)
XYZxyz(26.4385, 15.1621, 55.5556)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40C7 #68C740
analogous
#5C40C7 #9F40C7 #C740AC
triadic
#9F40C7 #C79F40 #40C79F
tetradic
#9F40C7 #C75C40 #68C740 #40ACC7
square
#9F40C7 #C75C40 #68C740 #40ACC7
split-complementary
#9F40C7 #ACC740 #40C75C
monochromatic
#56206D #7B2E9C #9F40C7 #B76FD5 #CF9FE3

Accessibility & contrast

On white

5.21
#9F40C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9F40C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40C7
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40C7#FFFFFF#000000##FFFFFF
##9F40C71.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#396FC4
Tritanopia (blue-blind)
#9B5B7F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9f40c7;
/* rgb */ color: rgb(159, 64, 199);
/* oklch */ color: oklch(55.9% 0.208 314.1);
Tailwind
colors: {
  custom: {
    50: '#bf7cd9',
    500: '#9f40c7',
    950: '#000000',
  },
}
SCSS
$custom: #9f40c7;
$custom-light: #bf7cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40c7",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 282.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5594,
    "c": 0.2085,
    "h": 314.1
  },
  "luminance": 0.15161
}

Semantic roles & 50–950 ramp

primary
#9F40C7
secondary
#A5CF94
accent
#DE4A76
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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