#9D27A2#9D27A2

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

Color values

HEX#9D27A2
RGBrgb(157, 39, 162)
HSLhsl(298, 61%, 39%)
HSVhsv(298, 76%, 64%)
CMYKcmyk(3.1%, 75.9%, 0%, 36.5%)
CIE-LABlab(39.96, 61.77, -40.81)
CIE-LCHlch(39.96, 74.04, 326.55°)
OKLaboklab(50.94% 0.1699 -0.1135)
OKLCHoklch(50.94% 0.204 326.3)
XYZxyz(21.1513, 11.2292, 35.2288)
Luminance0.1123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D27A2 #2CA227
analogous
#6027A2 #9D27A2 #A2276A
triadic
#9D27A2 #A29D27 #27A29D
tetradic
#9D27A2 #A26027 #2CA227 #276AA2
square
#9D27A2 #A26027 #2CA227 #276AA2
split-complementary
#9D27A2 #6AA227 #27A260
monochromatic
#3D0F3F #6D1B71 #9D27A2 #C937CF #D669DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D27A2#FFFFFF#000000##FFFFFF
##9D27A21.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d27a2;
/* rgb */ color: rgb(157, 39, 162);
/* oklch */ color: oklch(50.9% 0.204 326.3);
Tailwind
colors: {
  custom: {
    50: '#be6fbe',
    500: '#9d27a2',
    950: '#000000',
  },
}
SCSS
$custom: #9d27a2;
$custom-light: #be6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9d27a2",
  "rgb": {
    "r": 157,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 297.561,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50943,
    "c": 0.20431,
    "h": 326.3
  },
  "luminance": 0.11228
}

Semantic roles & 50–950 ramp

primary
#9D27A2
secondary
#68C164
accent
#E4434A
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9D27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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