#9927BD#9927BD

#9927BD is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.1% C 0.225 H 316.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9927BD
RGBrgb(153, 39, 189)
HSLhsl(286, 66%, 45%)
HSVhsv(286, 79%, 74%)
CMYKcmyk(19%, 79.4%, 0%, 25.9%)
CIE-LABlab(41.05, 65.86, -55.12)
CIE-LCHlch(41.05, 85.89, 320.07°)
OKLaboklab(52.14% 0.1623 -0.1555)
OKLCHoklch(52.14% 0.225 316.2)
XYZxyz(23.0463, 11.8984, 49.2169)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9927BD #4BBD27
analogous
#4E27BD #9927BD #BD2796
triadic
#9927BD #BD9927 #27BD99
tetradic
#9927BD #BD4E27 #4BBD27 #2796BD
square
#9927BD #BD4E27 #4BBD27 #2796BD
split-complementary
#9927BD #96BD27 #27BD4E
monochromatic
#471258 #701D8A #9927BD #B648D9 #CB7BE4

Accessibility & contrast

On white

6.21
#9927BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9927BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9927BD
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9927BD#FFFFFF#000000##FFFFFF
##9927BD1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#2564BA
Tritanopia (blue-blind)
#974A73
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9927bd;
/* rgb */ color: rgb(153, 39, 189);
/* oklch */ color: oklch(52.1% 0.225 316.2);
Tailwind
colors: {
  custom: {
    50: '#bc6fd2',
    500: '#9927bd',
    950: '#000000',
  },
}
SCSS
$custom: #9927bd;
$custom-light: #bc6fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9927bd",
  "rgb": {
    "r": 153,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 285.6,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52142,
    "c": 0.22476,
    "h": 316.2
  },
  "luminance": 0.11897
}

Semantic roles & 50–950 ramp

primary
#9927BD
secondary
#89CC74
accent
#E93F68
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #9927BD

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

Preview Lab → · Contrast checker → · Palette generator →

#9927BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva