#9728A2#9728A2

#9728A2 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.1% C 0.201 H 324.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#9728A2
RGBrgb(151, 40, 162)
HSLhsl(295, 60%, 40%)
HSVhsv(295, 75%, 64%)
CMYKcmyk(6.8%, 75.3%, 0%, 36.5%)
CIE-LABlab(39.08, 60.18, -42.28)
CIE-LCHlch(39.08, 73.55, 324.91°)
OKLaboklab(50.12% 0.1623 -0.1179)
OKLCHoklch(50.12% 0.201 324)
XYZxyz(20.0423, 10.7068, 35.1864)
Luminance0.1071 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9728A2 #33A228
analogous
#5A28A2 #9728A2 #A22870
triadic
#9728A2 #A29728 #28A297
tetradic
#9728A2 #A25A28 #33A228 #2870A2
square
#9728A2 #A25A28 #33A228 #2870A2
split-complementary
#9728A2 #70A228 #28A25A
monochromatic
#3C1040 #691C71 #9728A2 #C139CE #D06ADA

Accessibility & contrast

On white

6.69
#9728A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#9728A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9728A2
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9728A2#FFFFFF#000000##FFFFFF
##9728A21.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#3F609F
Tritanopia (blue-blind)
#9A3E63
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9728a2;
/* rgb */ color: rgb(151, 40, 162);
/* oklch */ color: oklch(50.1% 0.201 324.0);
Tailwind
colors: {
  custom: {
    50: '#b96ebe',
    500: '#9728a2',
    950: '#000000',
  },
}
SCSS
$custom: #9728a2;
$custom-light: #b96ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#9728a2",
  "rgb": {
    "r": 151,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 294.59,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50122,
    "c": 0.20058,
    "h": 324
  },
  "luminance": 0.10706
}

Semantic roles & 50–950 ramp

primary
#9728A2
secondary
#6DC165
accent
#E44453
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9728A2

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

Preview Lab → · Contrast checker → · Palette generator →

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