#9831AB#9831AB

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

Color values

HEX#9831AB
RGBrgb(152, 49, 171)
HSLhsl(291, 55%, 43%)
HSVhsv(291, 71%, 67%)
CMYKcmyk(11.1%, 71.3%, 0%, 32.9%)
CIE-LABlab(40.92, 58.83, -44.71)
CIE-LCHlch(40.92, 73.89, 322.76°)
OKLaboklab(51.64% 0.1542 -0.1251)
OKLCHoklch(51.64% 0.199 321)
XYZxyz(21.3970, 11.8134, 39.6733)
Luminance0.1181 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831AB #44AB31
analogous
#5B31AB #9831AB #AB3181
triadic
#9831AB #AB9831 #31AB98
tetradic
#9831AB #AB5B31 #44AB31 #3181AB
square
#9831AB #AB5B31 #44AB31 #3181AB
split-complementary
#9831AB #81AB31 #31AB5B
monochromatic
#43164C #6E237B #9831AB #B84DCC #CB7DDA

Accessibility & contrast

On white

6.25
#9831AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#9831AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9831AB#FFFFFF#000000##FFFFFF
##9831AB1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#3E64A8
Tritanopia (blue-blind)
#99486B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9831ab;
/* rgb */ color: rgb(152, 49, 171);
/* oklch */ color: oklch(51.6% 0.199 321.0);
Tailwind
colors: {
  custom: {
    50: '#ba73c5',
    500: '#9831ab',
    950: '#000000',
  },
}
SCSS
$custom: #9831ab;
$custom-light: #ba73c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9831ab",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 290.656,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.5164,
    "c": 0.19857,
    "h": 321
  },
  "luminance": 0.11812
}

Semantic roles & 50–950 ramp

primary
#9831AB
secondary
#81C275
accent
#DF4960
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9831AB

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

Preview Lab → · Contrast checker → · Palette generator →

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