#9B27BA#9B27BA

#9B27BA is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.2% C 0.223 H 317.8°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#9B27BA
RGBrgb(155, 39, 186)
HSLhsl(287, 65%, 44%)
HSVhsv(287, 79%, 73%)
CMYKcmyk(16.7%, 79%, 0%, 27.1%)
CIE-LABlab(41.16, 65.66, -53.17)
CIE-LCHlch(41.16, 84.49, 321.00°)
OKLaboklab(52.21% 0.1652 -0.1497)
OKLCHoklch(52.21% 0.223 317.8)
XYZxyz(23.1047, 11.9658, 47.5375)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B27BA #46BA27
analogous
#5227BA #9B27BA #BA2790
triadic
#9B27BA #BA9B27 #27BA9B
tetradic
#9B27BA #BA5227 #46BA27 #2790BA
square
#9B27BA #BA5227 #46BA27 #2790BA
split-complementary
#9B27BA #90BA27 #27BA52
monochromatic
#471255 #711C87 #9B27BA #B946D8 #CC79E3

Accessibility & contrast

On white

6.19
#9B27BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#9B27BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B27BA
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B27BA#FFFFFF#000000##FFFFFF
##9B27BA1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#2D64B7
Tritanopia (blue-blind)
#9A4871
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9b27ba;
/* rgb */ color: rgb(155, 39, 186);
/* oklch */ color: oklch(52.2% 0.223 317.8);
Tailwind
colors: {
  custom: {
    50: '#bd70cf',
    500: '#9b27ba',
    950: '#000000',
  },
}
SCSS
$custom: #9b27ba;
$custom-light: #bd70cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b27ba",
  "rgb": {
    "r": 155,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 287.347,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.52214,
    "c": 0.22296,
    "h": 317.8
  },
  "luminance": 0.11965
}

Semantic roles & 50–950 ramp

primary
#9B27BA
secondary
#85CB72
accent
#E84063
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9B27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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