#9831BD#9831BD

#9831BD is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.8% C 0.214 H 315.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9831BD
RGBrgb(152, 49, 189)
HSLhsl(284, 59%, 47%)
HSVhsv(284, 74%, 74%)
CMYKcmyk(19.6%, 74.1%, 0%, 25.9%)
CIE-LABlab(42.07, 62.30, -53.49)
CIE-LCHlch(42.07, 82.11, 319.36°)
OKLaboklab(52.83% 0.1525 -0.1508)
OKLCHoklch(52.83% 0.214 315.3)
XYZxyz(23.2310, 12.5470, 49.3323)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831BD #56BD31
analogous
#5231BD #9831BD #BD319C
triadic
#9831BD #BD9831 #31BD98
tetradic
#9831BD #BD5231 #56BD31 #319CBD
square
#9831BD #BD5231 #56BD31 #319CBD
split-complementary
#9831BD #9CBD31 #31BD52
monochromatic
#4A185C #71248C #9831BD #B358D4 #C988E0

Accessibility & contrast

On white

5.98
#9831BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9831BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9831BD
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9831BD#FFFFFF#000000##FFFFFF
##9831BD1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#2D66BA
Tritanopia (blue-blind)
#954F75
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9831bd;
/* rgb */ color: rgb(152, 49, 189);
/* oklch */ color: oklch(52.8% 0.214 315.3);
Tailwind
colors: {
  custom: {
    50: '#bb74d2',
    500: '#9831bd',
    950: '#000000',
  },
}
SCSS
$custom: #9831bd;
$custom-light: #bb74d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9831bd",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 284.143,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.5283,
    "c": 0.21448,
    "h": 315.3
  },
  "luminance": 0.12546
}

Semantic roles & 50–950 ramp

primary
#9831BD
secondary
#93CA80
accent
#E2466F
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9831BD

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

Preview Lab → · Contrast checker → · Palette generator →

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