#9831BB#9831BB

#9831BB is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.7% C 0.213 H 315.9°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#9831BB
RGBrgb(152, 49, 187)
HSLhsl(285, 58%, 46%)
HSVhsv(285, 74%, 73%)
CMYKcmyk(18.7%, 73.8%, 0%, 26.7%)
CIE-LABlab(41.94, 61.91, -52.53)
CIE-LCHlch(41.94, 81.19, 319.69°)
OKLaboklab(52.69% 0.1528 -0.148)
OKLCHoklch(52.69% 0.213 315.9)
XYZxyz(23.0154, 12.4608, 48.1969)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831BB #54BB31
analogous
#5331BB #9831BB #BB3199
triadic
#9831BB #BB9831 #31BB98
tetradic
#9831BB #BB5331 #54BB31 #3199BB
square
#9831BB #BB5331 #54BB31 #3199BB
split-complementary
#9831BB #99BB31 #31BB53
monochromatic
#49185A #71248B #9831BB #B356D3 #C987E0

Accessibility & contrast

On white

6.01
#9831BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9831BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9831BB#FFFFFF#000000##FFFFFF
##9831BB1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#2F66B8
Tritanopia (blue-blind)
#964F74
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9831bb;
/* rgb */ color: rgb(152, 49, 187);
/* oklch */ color: oklch(52.7% 0.213 315.9);
Tailwind
colors: {
  custom: {
    50: '#ba73d0',
    500: '#9831bb',
    950: '#000000',
  },
}
SCSS
$custom: #9831bb;
$custom-light: #ba73d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9831bb",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 284.783,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52693,
    "c": 0.21269,
    "h": 315.9
  },
  "luminance": 0.1246
}

Semantic roles & 50–950 ramp

primary
#9831BB
secondary
#92C97F
accent
#E2466E
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9831BB

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

Preview Lab → · Contrast checker → · Palette generator →

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