#9831B8#9831B8

#9831B8 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.5% C 0.210 H 316.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9831B8
RGBrgb(152, 49, 184)
HSLhsl(286, 58%, 46%)
HSVhsv(286, 73%, 72%)
CMYKcmyk(17.4%, 73.4%, 0%, 27.8%)
CIE-LABlab(41.74, 61.32, -51.08)
CIE-LCHlch(41.74, 79.81, 320.20°)
OKLaboklab(52.49% 0.1531 -0.1437)
OKLCHoklch(52.49% 0.21 316.8)
XYZxyz(22.6976, 12.3337, 46.5231)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831B8 #51B831
analogous
#5431B8 #9831B8 #B83194
triadic
#9831B8 #B89831 #31B898
tetradic
#9831B8 #B85431 #51B831 #3194B8
square
#9831B8 #B85431 #51B831 #3194B8
split-complementary
#9831B8 #94B831 #31B854
monochromatic
#481757 #702488 #9831B8 #B455D2 #C985DE

Accessibility & contrast

On white

6.06
#9831B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9831B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9831B8
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9831B8#FFFFFF#000000##FFFFFF
##9831B81.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#3365B5
Tritanopia (blue-blind)
#964D72
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9831b8;
/* rgb */ color: rgb(152, 49, 184);
/* oklch */ color: oklch(52.5% 0.210 316.8);
Tailwind
colors: {
  custom: {
    50: '#ba73ce',
    500: '#9831b8',
    950: '#000000',
  },
}
SCSS
$custom: #9831b8;
$custom-light: #ba73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#9831b8",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 285.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5249,
    "c": 0.21002,
    "h": 316.8
  },
  "luminance": 0.12333
}

Semantic roles & 50–950 ramp

primary
#9831B8
secondary
#8FC87D
accent
#E1476B
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9831B8

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

Preview Lab → · Contrast checker → · Palette generator →

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