#9B27A6#9B27A6

#9B27A6 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 50.9% C 0.207 H 324.1°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#9B27A6
RGBrgb(155, 39, 166)
HSLhsl(295, 62%, 40%)
HSVhsv(295, 77%, 65%)
CMYKcmyk(6.6%, 76.5%, 0%, 34.9%)
CIE-LABlab(39.87, 62.04, -43.38)
CIE-LCHlch(39.87, 75.70, 325.04°)
OKLaboklab(50.89% 0.1674 -0.121)
OKLCHoklch(50.89% 0.207 324.1)
XYZxyz(21.1254, 11.1741, 37.1131)
Luminance0.1117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B27A6 #32A627
analogous
#5B27A6 #9B27A6 #A62772
triadic
#9B27A6 #A69B27 #27A69B
tetradic
#9B27A6 #A65B27 #32A627 #2772A6
square
#9B27A6 #A65B27 #32A627 #2772A6
split-complementary
#9B27A6 #72A627 #27A65B
monochromatic
#3E1043 #6D1B74 #9B27A6 #C43AD1 #D26BDC

Accessibility & contrast

On white

6.49
#9B27A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#9B27A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B27A6
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B27A6#FFFFFF#000000##FFFFFF
##9B27A61.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#4063A3
Tritanopia (blue-blind)
#9E3F65
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9b27a6;
/* rgb */ color: rgb(155, 39, 166);
/* oklch */ color: oklch(50.9% 0.207 324.1);
Tailwind
colors: {
  custom: {
    50: '#bc6fc1',
    500: '#9b27a6',
    950: '#000000',
  },
}
SCSS
$custom: #9b27a6;
$custom-light: #bc6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b27a6",
  "rgb": {
    "r": 155,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 294.803,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50891,
    "c": 0.2066,
    "h": 324.1
  },
  "luminance": 0.11173
}

Semantic roles & 50–950 ramp

primary
#9B27A6
secondary
#6EC366
accent
#E54351
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9B27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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