#9729BA#9729BA

#9729BA is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.8% C 0.220 H 316.3°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9729BA
RGBrgb(151, 41, 186)
HSLhsl(286, 64%, 45%)
HSVhsv(286, 78%, 73%)
CMYKcmyk(18.8%, 78%, 0%, 27.1%)
CIE-LABlab(40.75, 64.30, -53.86)
CIE-LCHlch(40.75, 83.87, 320.05°)
OKLaboklab(51.8% 0.1588 -0.1519)
OKLCHoklch(51.8% 0.22 316.3)
XYZxyz(22.4170, 11.7113, 47.5245)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9729BA #4CBA29
analogous
#4E29BA #9729BA #BA2995
triadic
#9729BA #BA9729 #29BA97
tetradic
#9729BA #BA4E29 #4CBA29 #2995BA
square
#9729BA #BA4E29 #4CBA29 #2995BA
split-complementary
#9729BA #95BA29 #29BA4E
monochromatic
#461356 #6E1E88 #9729BA #B549D7 #C97BE2

Accessibility & contrast

On white

6.28
#9729BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9729BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9729BA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9729BA#FFFFFF#000000##FFFFFF
##9729BA1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#2863B7
Tritanopia (blue-blind)
#954A71
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9729ba;
/* rgb */ color: rgb(151, 41, 186);
/* oklch */ color: oklch(51.8% 0.220 316.3);
Tailwind
colors: {
  custom: {
    50: '#ba70cf',
    500: '#9729ba',
    950: '#000000',
  },
}
SCSS
$custom: #9729ba;
$custom-light: #ba70cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9729ba",
  "rgb": {
    "r": 151,
    "g": 41,
    "b": 186
  },
  "hsl": {
    "h": 285.517,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51803,
    "c": 0.21968,
    "h": 316.3
  },
  "luminance": 0.1171
}

Semantic roles & 50–950 ramp

primary
#9729BA
secondary
#89CA75
accent
#E74169
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9729BA

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

Preview Lab → · Contrast checker → · Palette generator →

#9729BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva