#9927BA#9927BA

#9927BA is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.9% C 0.222 H 317.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9927BA
RGBrgb(153, 39, 186)
HSLhsl(287, 65%, 44%)
HSVhsv(287, 79%, 73%)
CMYKcmyk(17.7%, 79%, 0%, 27.1%)
CIE-LABlab(40.85, 65.29, -53.69)
CIE-LCHlch(40.85, 84.54, 320.57°)
OKLaboklab(51.93% 0.1628 -0.1513)
OKLCHoklch(51.93% 0.222 317.1)
XYZxyz(22.7240, 11.7695, 47.5196)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9927BA #48BA27
analogous
#5027BA #9927BA #BA2792
triadic
#9927BA #BA9927 #27BA99
tetradic
#9927BA #BA5027 #48BA27 #2792BA
square
#9927BA #BA5027 #48BA27 #2792BA
split-complementary
#9927BA #92BA27 #27BA50
monochromatic
#461255 #6F1C87 #9927BA #B746D8 #CB79E3

Accessibility & contrast

On white

6.26
#9927BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9927BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9927BA
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9927BA#FFFFFF#000000##FFFFFF
##9927BA1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#2964B7
Tritanopia (blue-blind)
#974971
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9927ba;
/* rgb */ color: rgb(153, 39, 186);
/* oklch */ color: oklch(51.9% 0.222 317.1);
Tailwind
colors: {
  custom: {
    50: '#bc6fcf',
    500: '#9927ba',
    950: '#000000',
  },
}
SCSS
$custom: #9927ba;
$custom-light: #bc6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9927ba",
  "rgb": {
    "r": 153,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 286.531,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.51931,
    "c": 0.22224,
    "h": 317.1
  },
  "luminance": 0.11769
}

Semantic roles & 50–950 ramp

primary
#9927BA
secondary
#86CB72
accent
#E84065
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9927BA

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

Preview Lab → · Contrast checker → · Palette generator →

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