#9721B4#9721B4

#9721B4 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.8% C 0.222 H 318.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#9721B4
RGBrgb(151, 33, 180)
HSLhsl(288, 69%, 42%)
HSVhsv(288, 82%, 71%)
CMYKcmyk(16.1%, 81.7%, 0%, 29.4%)
CIE-LABlab(39.52, 65.55, -52.31)
CIE-LCHlch(39.52, 83.87, 321.41°)
OKLaboklab(50.8% 0.1659 -0.1473)
OKLCHoklch(50.8% 0.222 318.4)
XYZxyz(21.5434, 10.9634, 44.1525)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9721B4 #3EB421
analogous
#4D21B4 #9721B4 #B42188
triadic
#9721B4 #B49721 #21B497
tetradic
#9721B4 #B44D21 #3EB421 #2188B4
square
#9721B4 #B44D21 #3EB421 #2188B4
split-complementary
#9721B4 #88B421 #21B44D
monochromatic
#400E4D #6C1880 #9721B4 #BA38DA #CC6BE4

Accessibility & contrast

On white

6.58
#9721B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#9721B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9721B4
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9721B4#FFFFFF#000000##FFFFFF
##9721B41.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#2A61B1
Tritanopia (blue-blind)
#96446C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9721b4;
/* rgb */ color: rgb(151, 33, 180);
/* oklch */ color: oklch(50.8% 0.222 318.4);
Tailwind
colors: {
  custom: {
    50: '#ba6dcb',
    500: '#9721b4',
    950: '#000000',
  },
}
SCSS
$custom: #9721b4;
$custom-light: #ba6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#9721b4",
  "rgb": {
    "r": 151,
    "g": 33,
    "b": 180
  },
  "hsl": {
    "h": 288.163,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.50803,
    "c": 0.22179,
    "h": 318.4
  },
  "luminance": 0.10962
}

Semantic roles & 50–950 ramp

primary
#9721B4
secondary
#7ACA67
accent
#EC3C5F
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #9721B4

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

Preview Lab → · Contrast checker → · Palette generator →

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