#9940BF#9940BF

#9940BF is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.6% C 0.199 H 314.1°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9940BF
RGBrgb(153, 64, 191)
HSLhsl(282, 50%, 50%)
HSVhsv(282, 66%, 75%)
CMYKcmyk(19.9%, 66.5%, 0%, 25.1%)
CIE-LABlab(44.52, 56.79, -50.71)
CIE-LCHlch(44.52, 76.14, 318.24°)
OKLaboklab(54.65% 0.1381 -0.1427)
OKLCHoklch(54.65% 0.199 314.1)
XYZxyz(24.3727, 14.2015, 50.7374)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940BF #66BF40
analogous
#5940BF #9940BF #BF40A6
triadic
#9940BF #BF9940 #40BF99
tetradic
#9940BF #BF5940 #66BF40 #40A6BF
square
#9940BF #BF5940 #66BF40 #40A6BF
split-complementary
#9940BF #A6BF40 #40BF59
monochromatic
#502163 #743191 #9940BF #B16ECE #CA9CDE

Accessibility & contrast

On white

5.47
#9940BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9940BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940BF
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940BF#FFFFFF#000000##FFFFFF
##9940BF1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#3A6BBC
Tritanopia (blue-blind)
#96597A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9940bf;
/* rgb */ color: rgb(153, 64, 191);
/* oklch */ color: oklch(54.6% 0.199 314.1);
Tailwind
colors: {
  custom: {
    50: '#bb7bd3',
    500: '#9940bf',
    950: '#000000',
  },
}
SCSS
$custom: #9940bf;
$custom-light: #bb7bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9940bf",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 282.047,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.54648,
    "c": 0.1986,
    "h": 314.1
  },
  "luminance": 0.14201
}

Semantic roles & 50–950 ramp

primary
#9940BF
secondary
#A2CA91
accent
#D94E78
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9940BF

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

Preview Lab → · Contrast checker → · Palette generator →

#9940BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva