#9831B1#9831B1

#9831B1 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.0% C 0.204 H 319.0°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#9831B1
RGBrgb(152, 49, 177)
HSLhsl(288, 57%, 44%)
HSVhsv(288, 72%, 69%)
CMYKcmyk(14.1%, 72.3%, 0%, 30.6%)
CIE-LABlab(41.29, 59.97, -47.68)
CIE-LCHlch(41.29, 76.61, 321.51°)
OKLaboklab(52.03% 0.1538 -0.1337)
OKLCHoklch(52.03% 0.204 319)
XYZxyz(21.9820, 12.0474, 42.7539)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831B1 #4AB131
analogous
#5831B1 #9831B1 #B1318A
triadic
#9831B1 #B19831 #31B198
tetradic
#9831B1 #B15831 #4AB131 #318AB1
square
#9831B1 #B15831 #4AB131 #318AB1
split-complementary
#9831B1 #8AB131 #31B158
monochromatic
#461651 #6F2481 #9831B1 #B651CF #CA80DC

Accessibility & contrast

On white

6.16
#9831B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9831B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9831B1#FFFFFF#000000##FFFFFF
##9831B11.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#3965AE
Tritanopia (blue-blind)
#984A6E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9831b1;
/* rgb */ color: rgb(152, 49, 177);
/* oklch */ color: oklch(52.0% 0.204 319.0);
Tailwind
colors: {
  custom: {
    50: '#ba73c9',
    500: '#9831b1',
    950: '#000000',
  },
}
SCSS
$custom: #9831b1;
$custom-light: #ba73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9831b1",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 288.281,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52026,
    "c": 0.20382,
    "h": 319
  },
  "luminance": 0.12046
}

Semantic roles & 50–950 ramp

primary
#9831B1
secondary
#88C579
accent
#E04866
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9831B1

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

Preview Lab → · Contrast checker → · Palette generator →

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