#9D27A6#9D27A6

#9D27A6 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.2% C 0.207 H 324.9°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9D27A6
RGBrgb(157, 39, 166)
HSLhsl(296, 62%, 40%)
HSVhsv(296, 77%, 65%)
CMYKcmyk(5.4%, 76.5%, 0%, 34.9%)
CIE-LABlab(40.20, 62.46, -42.83)
CIE-LCHlch(40.20, 75.73, 325.56°)
OKLaboklab(51.19% 0.1697 -0.1193)
OKLCHoklch(51.19% 0.207 324.9)
XYZxyz(21.5126, 11.3737, 37.1313)
Luminance0.1137 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D27A6 #30A627
analogous
#5D27A6 #9D27A6 #A6276F
triadic
#9D27A6 #A69D27 #27A69D
tetradic
#9D27A6 #A65D27 #30A627 #276FA6
square
#9D27A6 #A65D27 #30A627 #276FA6
split-complementary
#9D27A6 #6FA627 #27A65D
monochromatic
#3F1043 #6E1B74 #9D27A6 #C63AD1 #D46BDC

Accessibility & contrast

On white

6.41
#9D27A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9D27A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D27A6
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D27A6#FFFFFF#000000##FFFFFF
##9D27A61.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#4264A3
Tritanopia (blue-blind)
#A03E66
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9d27a6;
/* rgb */ color: rgb(157, 39, 166);
/* oklch */ color: oklch(51.2% 0.207 324.9);
Tailwind
colors: {
  custom: {
    50: '#be6fc1',
    500: '#9d27a6',
    950: '#000000',
  },
}
SCSS
$custom: #9d27a6;
$custom-light: #be6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d27a6",
  "rgb": {
    "r": 157,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 295.748,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.5119,
    "c": 0.20748,
    "h": 324.9
  },
  "luminance": 0.11372
}

Semantic roles & 50–950 ramp

primary
#9D27A6
secondary
#6DC366
accent
#E5434E
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9D27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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