#9B27AD#9B27AD

#9B27AD is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.3% C 0.212 H 321.8°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#9B27AD
RGBrgb(155, 39, 173)
HSLhsl(292, 63%, 42%)
HSVhsv(292, 77%, 68%)
CMYKcmyk(10.4%, 77.5%, 0%, 32.2%)
CIE-LABlab(40.31, 63.28, -46.85)
CIE-LCHlch(40.31, 78.74, 323.48°)
OKLaboklab(51.34% 0.1669 -0.1312)
OKLCHoklch(51.34% 0.212 321.8)
XYZxyz(21.7851, 11.4380, 40.5873)
Luminance0.1144 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B27AD #39AD27
analogous
#5827AD #9B27AD #AD277C
triadic
#9B27AD #AD9B27 #27AD9B
tetradic
#9B27AD #AD5827 #39AD27 #277CAD
square
#9B27AD #AD5827 #39AD27 #277CAD
split-complementary
#9B27AD #7CAD27 #27AD58
monochromatic
#421049 #6E1C7B #9B27AD #BF3ED3 #D070DF

Accessibility & contrast

On white

6.39
#9B27AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#9B27AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B27AD
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B27AD#FFFFFF#000000##FFFFFF
##9B27AD1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#3A63AA
Tritanopia (blue-blind)
#9D4269
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9b27ad;
/* rgb */ color: rgb(155, 39, 173);
/* oklch */ color: oklch(51.3% 0.212 321.8);
Tailwind
colors: {
  custom: {
    50: '#bc6fc6',
    500: '#9b27ad',
    950: '#000000',
  },
}
SCSS
$custom: #9b27ad;
$custom-light: #bc6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#9b27ad",
  "rgb": {
    "r": 155,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 291.94,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.5134,
    "c": 0.21227,
    "h": 321.8
  },
  "luminance": 0.11437
}

Semantic roles & 50–950 ramp

primary
#9B27AD
secondary
#77C66A
accent
#E64258
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9B27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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