#9C27A2#9C27A2

#9C27A2 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.8% C 0.204 H 325.9°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#9C27A2
RGBrgb(156, 39, 162)
HSLhsl(297, 61%, 39%)
HSVhsv(297, 76%, 64%)
CMYKcmyk(3.7%, 75.9%, 0%, 36.5%)
CIE-LABlab(39.80, 61.56, -41.09)
CIE-LCHlch(39.80, 74.01, 326.28°)
OKLaboklab(50.79% 0.1688 -0.1143)
OKLCHoklch(50.79% 0.204 325.9)
XYZxyz(20.9570, 11.1290, 35.2197)
Luminance0.1113 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C27A2 #2DA227
analogous
#5F27A2 #9C27A2 #A2276B
triadic
#9C27A2 #A29C27 #27A29C
tetradic
#9C27A2 #A25F27 #2DA227 #276BA2
square
#9C27A2 #A25F27 #2DA227 #276BA2
split-complementary
#9C27A2 #6BA227 #27A25F
monochromatic
#3D0F3F #6D1B71 #9C27A2 #C837CF #D569DB

Accessibility & contrast

On white

6.51
#9C27A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9C27A2
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C27A2#FFFFFF#000000##FFFFFF
##9C27A21.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#44639F
Tritanopia (blue-blind)
#A03D63
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9c27a2;
/* rgb */ color: rgb(156, 39, 162);
/* oklch */ color: oklch(50.8% 0.204 325.9);
Tailwind
colors: {
  custom: {
    50: '#bd6fbe',
    500: '#9c27a2',
    950: '#000000',
  },
}
SCSS
$custom: #9c27a2;
$custom-light: #bd6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9c27a2",
  "rgb": {
    "r": 156,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 297.073,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50792,
    "c": 0.20385,
    "h": 325.9
  },
  "luminance": 0.11128
}

Semantic roles & 50–950 ramp

primary
#9C27A2
secondary
#68C164
accent
#E4434B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9C27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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