#9831AA#9831AA

#9831AA is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.6% C 0.198 H 321.3°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9831AA
RGBrgb(152, 49, 170)
HSLhsl(291, 55%, 43%)
HSVhsv(291, 71%, 67%)
CMYKcmyk(10.6%, 71.2%, 0%, 33.3%)
CIE-LABlab(40.86, 58.64, -44.22)
CIE-LCHlch(40.86, 73.44, 322.98°)
OKLaboklab(51.58% 0.1543 -0.1236)
OKLCHoklch(51.58% 0.198 321.3)
XYZxyz(21.3021, 11.7754, 39.1733)
Luminance0.1177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831AA #43AA31
analogous
#5B31AA #9831AA #AA3180
triadic
#9831AA #AA9831 #31AA98
tetradic
#9831AA #AA5B31 #43AA31 #3180AA
square
#9831AA #AA5B31 #43AA31 #3180AA
split-complementary
#9831AA #80AA31 #31AA5B
monochromatic
#43164B #6E237A #9831AA #B94DCC #CB7CD9

Accessibility & contrast

On white

6.26
#9831AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9831AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9831AA#FFFFFF#000000##FFFFFF
##9831AA1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#3F64A7
Tritanopia (blue-blind)
#99476A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9831aa;
/* rgb */ color: rgb(152, 49, 170);
/* oklch */ color: oklch(51.6% 0.198 321.3);
Tailwind
colors: {
  custom: {
    50: '#ba73c4',
    500: '#9831aa',
    950: '#000000',
  },
}
SCSS
$custom: #9831aa;
$custom-light: #ba73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9831aa",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 291.074,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51577,
    "c": 0.19769,
    "h": 321.3
  },
  "luminance": 0.11774
}

Semantic roles & 50–950 ramp

primary
#9831AA
secondary
#80C275
accent
#DF495F
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9831AA

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

Preview Lab → · Contrast checker → · Palette generator →

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