#9831B2#9831B2

#9831B2 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.1% C 0.205 H 318.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9831B2
RGBrgb(152, 49, 178)
HSLhsl(288, 57%, 45%)
HSVhsv(288, 72%, 70%)
CMYKcmyk(14.6%, 72.5%, 0%, 30.2%)
CIE-LABlab(41.35, 60.16, -48.17)
CIE-LCHlch(41.35, 77.06, 321.32°)
OKLaboklab(52.09% 0.1537 -0.1352)
OKLCHoklch(52.09% 0.205 318.7)
XYZxyz(22.0820, 12.0874, 43.2808)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831B2 #4BB231
analogous
#5831B2 #9831B2 #B2318C
triadic
#9831B2 #B29831 #31B298
tetradic
#9831B2 #B25831 #4BB231 #318CB2
square
#9831B2 #B25831 #4BB231 #318CB2
split-complementary
#9831B2 #8CB231 #31B258
monochromatic
#461752 #6F2482 #9831B2 #B651CF #CA81DC

Accessibility & contrast

On white

6.15
#9831B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#9831B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9831B2#FFFFFF#000000##FFFFFF
##9831B21.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#3965AF
Tritanopia (blue-blind)
#984B6F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9831b2;
/* rgb */ color: rgb(152, 49, 178);
/* oklch */ color: oklch(52.1% 0.205 318.7);
Tailwind
colors: {
  custom: {
    50: '#ba73ca',
    500: '#9831b2',
    950: '#000000',
  },
}
SCSS
$custom: #9831b2;
$custom-light: #ba73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9831b2",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 287.907,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52091,
    "c": 0.20471,
    "h": 318.7
  },
  "luminance": 0.12086
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9831B2

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

Preview Lab → · Contrast checker → · Palette generator →

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