#9F40BD#9F40BD

#9F40BD is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.3% C 0.199 H 317.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9F40BD
RGBrgb(159, 64, 189)
HSLhsl(286, 49%, 50%)
HSVhsv(286, 66%, 74%)
CMYKcmyk(15.9%, 66.1%, 0%, 25.9%)
CIE-LABlab(45.24, 57.74, -48.35)
CIE-LCHlch(45.24, 75.31, 320.06°)
OKLaboklab(55.3% 0.1457 -0.1356)
OKLCHoklch(55.3% 0.199 317.1)
XYZxyz(25.3154, 14.7129, 49.6406)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40BD #5EBD40
analogous
#6140BD #9F40BD #BD409D
triadic
#9F40BD #BD9F40 #40BD9F
tetradic
#9F40BD #BD6140 #5EBD40 #409DBD
square
#9F40BD #BD6140 #5EBD40 #409DBD
split-complementary
#9F40BD #9DBD40 #40BD61
monochromatic
#522162 #79318F #9F40BD #B66DCD #CD9ADD

Accessibility & contrast

On white

5.33
#9F40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9F40BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40BD
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40BD#FFFFFF#000000##FFFFFF
##9F40BD1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0865C1
Deuteranopia (green-blind)
#436EBA
Tritanopia (blue-blind)
#9E5779
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9f40bd;
/* rgb */ color: rgb(159, 64, 189);
/* oklch */ color: oklch(55.3% 0.199 317.1);
Tailwind
colors: {
  custom: {
    50: '#bf7cd1',
    500: '#9f40bd',
    950: '#000000',
  },
}
SCSS
$custom: #9f40bd;
$custom-light: #bf7cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40bd",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 285.6,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.553,
    "c": 0.19901,
    "h": 317.1
  },
  "luminance": 0.14712
}

Semantic roles & 50–950 ramp

primary
#9F40BD
secondary
#9EC990
accent
#D94F70
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #9F40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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