#9F40BE#9F40BE

#9F40BE is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.4% C 0.200 H 316.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9F40BE
RGBrgb(159, 64, 190)
HSLhsl(285, 50%, 50%)
HSVhsv(285, 66%, 75%)
CMYKcmyk(16.3%, 66.3%, 0%, 25.5%)
CIE-LABlab(45.30, 57.94, -48.83)
CIE-LCHlch(45.30, 75.78, 319.88°)
OKLaboklab(55.36% 0.1456 -0.137)
OKLCHoklch(55.36% 0.2 316.7)
XYZxyz(25.4243, 14.7564, 50.2142)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40BE #5FBE40
analogous
#6040BE #9F40BE #BE409E
triadic
#9F40BE #BE9F40 #40BE9F
tetradic
#9F40BE #BE6040 #5FBE40 #409EBE
square
#9F40BE #BE6040 #5FBE40 #409EBE
split-complementary
#9F40BE #9EBE40 #40BE60
monochromatic
#522162 #793190 #9F40BE #B66DCE #CD9BDD

Accessibility & contrast

On white

5.32
#9F40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9F40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40BE
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40BE#FFFFFF#000000##FFFFFF
##9F40BE1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0465C2
Deuteranopia (green-blind)
#426EBB
Tritanopia (blue-blind)
#9D587A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9f40be;
/* rgb */ color: rgb(159, 64, 190);
/* oklch */ color: oklch(55.4% 0.200 316.7);
Tailwind
colors: {
  custom: {
    50: '#bf7cd2',
    500: '#9f40be',
    950: '#000000',
  },
}
SCSS
$custom: #9f40be;
$custom-light: #bf7cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40be",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 285.238,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55362,
    "c": 0.19996,
    "h": 316.7
  },
  "luminance": 0.14755
}

Semantic roles & 50–950 ramp

primary
#9F40BE
secondary
#9EC990
accent
#D94F71
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #9F40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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