#9831B0#9831B0

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

Color values

HEX#9831B0
RGBrgb(152, 49, 176)
HSLhsl(289, 56%, 44%)
HSVhsv(289, 72%, 69%)
CMYKcmyk(13.6%, 72.2%, 0%, 31%)
CIE-LABlab(41.23, 59.77, -47.19)
CIE-LCHlch(41.23, 76.15, 321.71°)
OKLaboklab(51.96% 0.1539 -0.1323)
OKLCHoklch(51.96% 0.203 319.3)
XYZxyz(21.8827, 12.0077, 42.2309)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831B0 #49B031
analogous
#5931B0 #9831B0 #B03189
triadic
#9831B0 #B09831 #31B098
tetradic
#9831B0 #B05931 #49B031 #3189B0
square
#9831B0 #B05931 #49B031 #3189B0
split-complementary
#9831B0 #89B031 #31B059
monochromatic
#451650 #6F2480 #9831B0 #B650CE #CA80DC

Accessibility & contrast

On white

6.17
#9831B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9831B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9831B0#FFFFFF#000000##FFFFFF
##9831B01.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#3A65AD
Tritanopia (blue-blind)
#984A6E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9831b0;
/* rgb */ color: rgb(152, 49, 176);
/* oklch */ color: oklch(52.0% 0.203 319.3);
Tailwind
colors: {
  custom: {
    50: '#ba73c8',
    500: '#9831b0',
    950: '#000000',
  },
}
SCSS
$custom: #9831b0;
$custom-light: #ba73c8;
$custom-dark: #000000;
JSON
{
  "hex": "#9831b0",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 288.661,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.51961,
    "c": 0.20295,
    "h": 319.3
  },
  "luminance": 0.12007
}

Semantic roles & 50–950 ramp

primary
#9831B0
secondary
#87C578
accent
#E04865
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9831B0

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

Preview Lab → · Contrast checker → · Palette generator →

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