#9728A1#9728A1

#9728A1 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.1% C 0.200 H 324.3°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#9728A1
RGBrgb(151, 40, 161)
HSLhsl(295, 60%, 39%)
HSVhsv(295, 75%, 63%)
CMYKcmyk(6.2%, 75.2%, 0%, 36.9%)
CIE-LABlab(39.02, 60.00, -41.77)
CIE-LCHlch(39.02, 73.11, 325.16°)
OKLaboklab(50.06% 0.1623 -0.1164)
OKLCHoklch(50.06% 0.2 324.3)
XYZxyz(19.9538, 10.6714, 34.7201)
Luminance0.1067 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9728A1 #32A128
analogous
#5A28A1 #9728A1 #A1286F
triadic
#9728A1 #A19728 #28A197
tetradic
#9728A1 #A15A28 #32A128 #286FA1
square
#9728A1 #A15A28 #32A128 #286FA1
split-complementary
#9728A1 #6FA128 #28A15A
monochromatic
#3B103F #691C70 #9728A1 #C139CE #D16ADA

Accessibility & contrast

On white

6.70
#9728A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9728A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9728A1
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9728A1#FFFFFF#000000##FFFFFF
##9728A11.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A4
Deuteranopia (green-blind)
#40609E
Tritanopia (blue-blind)
#9A3E63
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9728a1;
/* rgb */ color: rgb(151, 40, 161);
/* oklch */ color: oklch(50.1% 0.200 324.3);
Tailwind
colors: {
  custom: {
    50: '#b96ebd',
    500: '#9728a1',
    950: '#000000',
  },
}
SCSS
$custom: #9728a1;
$custom-light: #b96ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#9728a1",
  "rgb": {
    "r": 151,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 295.041,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.5006,
    "c": 0.19976,
    "h": 324.3
  },
  "luminance": 0.1067
}

Semantic roles & 50–950 ramp

primary
#9728A1
secondary
#6CC065
accent
#E34452
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9728A1

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

Preview Lab → · Contrast checker → · Palette generator →

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