#9A27AA#9A27AA

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

Color values

HEX#9A27AA
RGBrgb(154, 39, 170)
HSLhsl(293, 63%, 41%)
HSVhsv(293, 77%, 67%)
CMYKcmyk(9.4%, 77.1%, 0%, 33.3%)
CIE-LABlab(39.96, 62.55, -45.64)
CIE-LCHlch(39.96, 77.43, 323.88°)
OKLaboklab(51% 0.166 -0.1277)
OKLCHoklch(51% 0.209 322.4)
XYZxyz(21.3069, 11.2246, 39.0667)
Luminance0.1122 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A27AA #37AA27
analogous
#5827AA #9A27AA #AA2778
triadic
#9A27AA #AA9A27 #27AA9A
tetradic
#9A27AA #AA5827 #37AA27 #2778AA
square
#9A27AA #AA5827 #37AA27 #2778AA
split-complementary
#9A27AA #78AA27 #27AA58
monochromatic
#401046 #6D1C78 #9A27AA #C03CD2 #D06EDE

Accessibility & contrast

On white

6.47
#9A27AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#9A27AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A27AA
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A27AA#FFFFFF#000000##FFFFFF
##9A27AA1.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AE
Deuteranopia (green-blind)
#3C62A7
Tritanopia (blue-blind)
#9C4168
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9a27aa;
/* rgb */ color: rgb(154, 39, 170);
/* oklch */ color: oklch(51.0% 0.209 322.4);
Tailwind
colors: {
  custom: {
    50: '#bc6fc4',
    500: '#9a27aa',
    950: '#000000',
  },
}
SCSS
$custom: #9a27aa;
$custom-light: #bc6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a27aa",
  "rgb": {
    "r": 154,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 292.672,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50998,
    "c": 0.20941,
    "h": 322.4
  },
  "luminance": 0.11223
}

Semantic roles & 50–950 ramp

primary
#9A27AA
secondary
#74C469
accent
#E64256
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9A27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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