#9B27A8#9B27A8

#9B27A8 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 51.0% C 0.208 H 323.5°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#9B27A8
RGBrgb(155, 39, 168)
HSLhsl(294, 62%, 41%)
HSVhsv(294, 77%, 66%)
CMYKcmyk(7.7%, 76.8%, 0%, 34.1%)
CIE-LABlab(40.00, 62.39, -44.38)
CIE-LCHlch(40.00, 76.56, 324.58°)
OKLaboklab(51.02% 0.1673 -0.1239)
OKLCHoklch(51.02% 0.208 323.5)
XYZxyz(21.3103, 11.2481, 38.0868)
Luminance0.1125 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B27A8 #34A827
analogous
#5A27A8 #9B27A8 #A82775
triadic
#9B27A8 #A89B27 #27A89B
tetradic
#9B27A8 #A85A27 #34A827 #2775A8
square
#9B27A8 #A85A27 #34A827 #2775A8
split-complementary
#9B27A8 #75A827 #27A85A
monochromatic
#3F1045 #6D1B76 #9B27A8 #C23BD1 #D26CDD

Accessibility & contrast

On white

6.46
#9B27A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#9B27A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B27A8
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B27A8#FFFFFF#000000##FFFFFF
##9B27A81.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#3E63A5
Tritanopia (blue-blind)
#9E4067
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9b27a8;
/* rgb */ color: rgb(155, 39, 168);
/* oklch */ color: oklch(51.0% 0.208 323.5);
Tailwind
colors: {
  custom: {
    50: '#bc6fc2',
    500: '#9b27a8',
    950: '#000000',
  },
}
SCSS
$custom: #9b27a8;
$custom-light: #bc6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b27a8",
  "rgb": {
    "r": 155,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 293.953,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51018,
    "c": 0.20821,
    "h": 323.5
  },
  "luminance": 0.11247
}

Semantic roles & 50–950 ramp

primary
#9B27A8
secondary
#71C367
accent
#E54253
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #9B27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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