#9721A7#9721A7

#9721A7 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.9% C 0.211 H 322.5°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#9721A7
RGBrgb(151, 33, 167)
HSLhsl(293, 67%, 39%)
HSVhsv(293, 80%, 65%)
CMYKcmyk(9.6%, 80.2%, 0%, 34.5%)
CIE-LABlab(38.65, 63.21, -45.96)
CIE-LCHlch(38.65, 78.15, 323.98°)
OKLaboklab(49.92% 0.1677 -0.1287)
OKLCHoklch(49.92% 0.211 322.5)
XYZxyz(20.2807, 10.4583, 37.5021)
Luminance0.1046 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9721A7 #31A721
analogous
#5421A7 #9721A7 #A72174
triadic
#9721A7 #A79721 #21A797
tetradic
#9721A7 #A75421 #31A721 #2174A7
square
#9721A7 #A75421 #31A721 #2174A7
split-complementary
#9721A7 #74A721 #21A754
monochromatic
#3B0D41 #691774 #9721A7 #C22FD6 #D162E0

Accessibility & contrast

On white

6.79
#9721A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#9721A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9721A7
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9721A7#FFFFFF#000000##FFFFFF
##9721A71.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#375FA4
Tritanopia (blue-blind)
#993D65
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9721a7;
/* rgb */ color: rgb(151, 33, 167);
/* oklch */ color: oklch(49.9% 0.211 322.5);
Tailwind
colors: {
  custom: {
    50: '#ba6cc2',
    500: '#9721a7',
    950: '#000000',
  },
}
SCSS
$custom: #9721a7;
$custom-light: #ba6cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9721a7",
  "rgb": {
    "r": 151,
    "g": 33,
    "b": 167
  },
  "hsl": {
    "h": 292.836,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.49918,
    "c": 0.21134,
    "h": 322.5
  },
  "luminance": 0.10457
}

Semantic roles & 50–950 ramp

primary
#9721A7
secondary
#6BC55F
accent
#EA3E52
background
#FBF6FC
surface
#F7ECF8
border
#D0C7D1
text
#120812
muted
#817A81

Preview Lab

Preview with #9721A7

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

Preview Lab → · Contrast checker → · Palette generator →

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