#9831AC#9831AC

#9831AC is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.7% C 0.199 H 320.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#9831AC
RGBrgb(152, 49, 172)
HSLhsl(290, 56%, 43%)
HSVhsv(290, 72%, 67%)
CMYKcmyk(11.6%, 71.5%, 0%, 32.5%)
CIE-LABlab(40.98, 59.02, -45.21)
CIE-LCHlch(40.98, 74.34, 322.55°)
OKLaboklab(51.7% 0.1542 -0.1265)
OKLCHoklch(51.7% 0.199 320.6)
XYZxyz(21.4927, 11.8517, 40.1772)
Luminance0.1185 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831AC #45AC31
analogous
#5A31AC #9831AC #AC3182
triadic
#9831AC #AC9831 #31AC98
tetradic
#9831AC #AC5A31 #45AC31 #3182AC
square
#9831AC #AC5A31 #45AC31 #3182AC
split-complementary
#9831AC #82AC31 #31AC5A
monochromatic
#44164D #6E237C #9831AC #B84ECC #CB7DDA

Accessibility & contrast

On white

6.23
#9831AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9831AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9831AC
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9831AC#FFFFFF#000000##FFFFFF
##9831AC1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#3E64A9
Tritanopia (blue-blind)
#99486B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9831ac;
/* rgb */ color: rgb(152, 49, 172);
/* oklch */ color: oklch(51.7% 0.199 320.6);
Tailwind
colors: {
  custom: {
    50: '#ba73c5',
    500: '#9831ac',
    950: '#000000',
  },
}
SCSS
$custom: #9831ac;
$custom-light: #ba73c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9831ac",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 290.244,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.51703,
    "c": 0.19944,
    "h": 320.6
  },
  "luminance": 0.11851
}

Semantic roles & 50–950 ramp

primary
#9831AC
secondary
#82C376
accent
#DF4961
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9831AC

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

Preview Lab → · Contrast checker → · Palette generator →

#9831AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva