#9D27BA#9D27BA

#9D27BA is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.5% C 0.224 H 318.5°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9D27BA
RGBrgb(157, 39, 186)
HSLhsl(288, 65%, 44%)
HSVhsv(288, 79%, 73%)
CMYKcmyk(15.6%, 79%, 0%, 27.1%)
CIE-LABlab(41.48, 66.03, -52.64)
CIE-LCHlch(41.48, 84.45, 321.44°)
OKLaboklab(52.5% 0.1676 -0.1481)
OKLCHoklch(52.5% 0.224 318.5)
XYZxyz(23.4919, 12.1654, 47.5556)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D27BA #44BA27
analogous
#5427BA #9D27BA #BA278E
triadic
#9D27BA #BA9D27 #27BA9D
tetradic
#9D27BA #BA5427 #44BA27 #278EBA
square
#9D27BA #BA5427 #44BA27 #278EBA
split-complementary
#9D27BA #8EBA27 #27BA54
monochromatic
#481255 #721C87 #9D27BA #BB46D8 #CE79E3

Accessibility & contrast

On white

6.12
#9D27BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9D27BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D27BA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D27BA#FFFFFF#000000##FFFFFF
##9D27BA1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#3065B7
Tritanopia (blue-blind)
#9C4871
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9d27ba;
/* rgb */ color: rgb(157, 39, 186);
/* oklch */ color: oklch(52.5% 0.224 318.5);
Tailwind
colors: {
  custom: {
    50: '#be70cf',
    500: '#9d27ba',
    950: '#000000',
  },
}
SCSS
$custom: #9d27ba;
$custom-light: #be70cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d27ba",
  "rgb": {
    "r": 157,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 288.163,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.52499,
    "c": 0.22368,
    "h": 318.5
  },
  "luminance": 0.12164
}

Semantic roles & 50–950 ramp

primary
#9D27BA
secondary
#84CB72
accent
#E84061
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9D27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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