#9721A8#9721A8

#9721A8 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.212 H 322.2°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#9721A8
RGBrgb(151, 33, 168)
HSLhsl(292, 67%, 39%)
HSVhsv(292, 80%, 66%)
CMYKcmyk(10.1%, 80.4%, 0%, 34.1%)
CIE-LABlab(38.72, 63.38, -46.46)
CIE-LCHlch(38.72, 78.59, 323.76°)
OKLaboklab(49.98% 0.1676 -0.1301)
OKLCHoklch(49.98% 0.212 322.2)
XYZxyz(20.3735, 10.4954, 37.9909)
Luminance0.1049 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9721A8 #32A821
analogous
#5321A8 #9721A8 #A82176
triadic
#9721A8 #A89721 #21A897
tetradic
#9721A8 #A85321 #32A821 #2176A8
square
#9721A8 #A85321 #32A821 #2176A8
split-complementary
#9721A8 #76A821 #21A853
monochromatic
#3B0D42 #691775 #9721A8 #C130D6 #D163E0

Accessibility & contrast

On white

6.78
#9721A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9721A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9721A8
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9721A8#FFFFFF#000000##FFFFFF
##9721A81.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AC
Deuteranopia (green-blind)
#365FA5
Tritanopia (blue-blind)
#993E65
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9721a8;
/* rgb */ color: rgb(151, 33, 168);
/* oklch */ color: oklch(50.0% 0.212 322.2);
Tailwind
colors: {
  custom: {
    50: '#ba6cc2',
    500: '#9721a8',
    950: '#000000',
  },
}
SCSS
$custom: #9721a8;
$custom-light: #ba6cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9721a8",
  "rgb": {
    "r": 151,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 292.444,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.49984,
    "c": 0.21214,
    "h": 322.2
  },
  "luminance": 0.10494
}

Semantic roles & 50–950 ramp

primary
#9721A8
secondary
#6CC55F
accent
#EA3E53
background
#FBF6FC
surface
#F7ECF8
border
#D0C7D1
text
#120812
muted
#817A81

Preview Lab

Preview with #9721A8

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

Preview Lab → · Contrast checker → · Palette generator →

#9721A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva