#9940BC#9940BC

#9940BC is a mid, vivid purple. Relative luminance 0.141; OKLCH L 54.5% C 0.196 H 315.0°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9940BC
RGBrgb(153, 64, 188)
HSLhsl(283, 49%, 49%)
HSVhsv(283, 66%, 74%)
CMYKcmyk(18.6%, 66%, 0%, 26.3%)
CIE-LABlab(44.33, 56.17, -49.26)
CIE-LCHlch(44.33, 74.71, 318.75°)
OKLaboklab(54.46% 0.1383 -0.1384)
OKLCHoklch(54.46% 0.196 315)
XYZxyz(24.0459, 14.0708, 49.0165)
Luminance0.1407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9940BC #63BC40
analogous
#5B40BC #9940BC #BC40A1
triadic
#9940BC #BC9940 #40BC99
tetradic
#9940BC #BC5B40 #63BC40 #40A1BC
square
#9940BC #BC5B40 #63BC40 #40A1BC
split-complementary
#9940BC #A1BC40 #40BC5B
monochromatic
#4F2161 #74308E #9940BC #B26CCD #CA9ADD

Accessibility & contrast

On white

5.51
#9940BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#9940BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9940BC
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9940BC#FFFFFF#000000##FFFFFF
##9940BC1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C0
Deuteranopia (green-blind)
#3D6BB9
Tritanopia (blue-blind)
#965879
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9940bc;
/* rgb */ color: rgb(153, 64, 188);
/* oklch */ color: oklch(54.5% 0.196 315.0);
Tailwind
colors: {
  custom: {
    50: '#bb7bd1',
    500: '#9940bc',
    950: '#000000',
  },
}
SCSS
$custom: #9940bc;
$custom-light: #bb7bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9940bc",
  "rgb": {
    "r": 153,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 283.065,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.54455,
    "c": 0.19566,
    "h": 315
  },
  "luminance": 0.1407
}

Semantic roles & 50–950 ramp

primary
#9940BC
secondary
#9FC98F
accent
#D94F76
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9940BC

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

Preview Lab → · Contrast checker → · Palette generator →

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