#9728AB#9728AB

#9728AB is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.7% C 0.208 H 321.0°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#9728AB
RGBrgb(151, 40, 171)
HSLhsl(291, 62%, 41%)
HSVhsv(291, 77%, 67%)
CMYKcmyk(11.7%, 76.6%, 0%, 32.9%)
CIE-LABlab(39.64, 61.80, -46.76)
CIE-LCHlch(39.64, 77.50, 322.89°)
OKLaboklab(50.7% 0.1616 -0.131)
OKLCHoklch(50.7% 0.208 321)
XYZxyz(20.8711, 11.0383, 39.5514)
Luminance0.1104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9728AB #3CAB28
analogous
#5628AB #9728AB #AB287E
triadic
#9728AB #AB9728 #28AB97
tetradic
#9728AB #AB5628 #3CAB28 #287EAB
square
#9728AB #AB5628 #3CAB28 #287EAB
split-complementary
#9728AB #7EAB28 #28AB56
monochromatic
#3F1148 #6B1C79 #9728AB #BB3ED2 #CD70DE

Accessibility & contrast

On white

6.55
#9728AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9728AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9728AB
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9728AB#FFFFFF#000000##FFFFFF
##9728AB1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#3861A8
Tritanopia (blue-blind)
#984369
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9728ab;
/* rgb */ color: rgb(151, 40, 171);
/* oklch */ color: oklch(50.7% 0.208 321.0);
Tailwind
colors: {
  custom: {
    50: '#ba6fc5',
    500: '#9728ab',
    950: '#000000',
  },
}
SCSS
$custom: #9728ab;
$custom-light: #ba6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#9728ab",
  "rgb": {
    "r": 151,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 290.84,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50702,
    "c": 0.20801,
    "h": 321
  },
  "luminance": 0.11037
}

Semantic roles & 50–950 ramp

primary
#9728AB
secondary
#78C46A
accent
#E5435B
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9728AB

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

Preview Lab → · Contrast checker → · Palette generator →

#9728AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva