#9F40BF#9F40BF

#9F40BF is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.4% C 0.201 H 316.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9F40BF
RGBrgb(159, 64, 191)
HSLhsl(285, 50%, 50%)
HSVhsv(285, 66%, 75%)
CMYKcmyk(16.8%, 66.5%, 0%, 25.1%)
CIE-LABlab(45.36, 58.14, -49.32)
CIE-LCHlch(45.36, 76.24, 319.69°)
OKLaboklab(55.43% 0.1456 -0.1384)
OKLCHoklch(55.43% 0.201 316.4)
XYZxyz(25.5340, 14.8003, 50.7918)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40BF #60BF40
analogous
#6040BF #9F40BF #BF409F
triadic
#9F40BF #BF9F40 #40BF9F
tetradic
#9F40BF #BF6040 #60BF40 #409FBF
square
#9F40BF #BF6040 #60BF40 #409FBF
split-complementary
#9F40BF #9FBF40 #40BF60
monochromatic
#532163 #793191 #9F40BF #B66ECE #CD9CDE

Accessibility & contrast

On white

5.30
#9F40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9F40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40BF
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40BF#FFFFFF#000000##FFFFFF
##9F40BF1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C3
Deuteranopia (green-blind)
#416EBC
Tritanopia (blue-blind)
#9D587A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9f40bf;
/* rgb */ color: rgb(159, 64, 191);
/* oklch */ color: oklch(55.4% 0.201 316.4);
Tailwind
colors: {
  custom: {
    50: '#bf7cd3',
    500: '#9f40bf',
    950: '#000000',
  },
}
SCSS
$custom: #9f40bf;
$custom-light: #bf7cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40bf",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 284.882,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.55425,
    "c": 0.2009,
    "h": 316.4
  },
  "luminance": 0.14799
}

Semantic roles & 50–950 ramp

primary
#9F40BF
secondary
#9FCA91
accent
#D94E71
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #9F40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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