#9B27AA#9B27AA

#9B27AA is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.1% C 0.210 H 322.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9B27AA
RGBrgb(155, 39, 170)
HSLhsl(293, 63%, 41%)
HSVhsv(293, 77%, 67%)
CMYKcmyk(8.8%, 77.1%, 0%, 33.3%)
CIE-LABlab(40.12, 62.75, -45.37)
CIE-LCHlch(40.12, 77.43, 324.13°)
OKLaboklab(51.15% 0.1672 -0.1268)
OKLCHoklch(51.15% 0.21 322.8)
XYZxyz(21.4981, 11.3232, 39.0757)
Luminance0.1132 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B27AA #36AA27
analogous
#5927AA #9B27AA #AA2777
triadic
#9B27AA #AA9B27 #27AA9B
tetradic
#9B27AA #AA5927 #36AA27 #2777AA
square
#9B27AA #AA5927 #36AA27 #2777AA
split-complementary
#9B27AA #77AA27 #27AA59
monochromatic
#401046 #6E1C78 #9B27AA #C13CD2 #D16EDE

Accessibility & contrast

On white

6.43
#9B27AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#9B27AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B27AA
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B27AA#FFFFFF#000000##FFFFFF
##9B27AA1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AE
Deuteranopia (green-blind)
#3D63A7
Tritanopia (blue-blind)
#9D4168
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9b27aa;
/* rgb */ color: rgb(155, 39, 170);
/* oklch */ color: oklch(51.1% 0.210 322.8);
Tailwind
colors: {
  custom: {
    50: '#bc6fc4',
    500: '#9b27aa',
    950: '#000000',
  },
}
SCSS
$custom: #9b27aa;
$custom-light: #bc6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b27aa",
  "rgb": {
    "r": 155,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 293.13,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51146,
    "c": 0.20983,
    "h": 322.8
  },
  "luminance": 0.11322
}

Semantic roles & 50–950 ramp

primary
#9B27AA
secondary
#73C469
accent
#E64255
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9B27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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