#9831BC#9831BC

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

Color values

HEX#9831BC
RGBrgb(152, 49, 188)
HSLhsl(284, 59%, 46%)
HSVhsv(284, 74%, 74%)
CMYKcmyk(19.1%, 73.9%, 0%, 26.3%)
CIE-LABlab(42.01, 62.11, -53.01)
CIE-LCHlch(42.01, 81.65, 319.52°)
OKLaboklab(52.76% 0.1527 -0.1494)
OKLCHoklch(52.76% 0.214 315.6)
XYZxyz(23.1229, 12.5038, 48.7626)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831BC #55BC31
analogous
#5231BC #9831BC #BC319B
triadic
#9831BC #BC9831 #31BC98
tetradic
#9831BC #BC5231 #55BC31 #319BBC
square
#9831BC #BC5231 #55BC31 #319BBC
split-complementary
#9831BC #9BBC31 #31BC52
monochromatic
#49185B #71248B #9831BC #B357D3 #C988E0

Accessibility & contrast

On white

6.00
#9831BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#9831BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9831BC
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9831BC#FFFFFF#000000##FFFFFF
##9831BC1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#2E66B9
Tritanopia (blue-blind)
#954F74
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9831bc;
/* rgb */ color: rgb(152, 49, 188);
/* oklch */ color: oklch(52.8% 0.214 315.6);
Tailwind
colors: {
  custom: {
    50: '#bb73d1',
    500: '#9831bc',
    950: '#000000',
  },
}
SCSS
$custom: #9831bc;
$custom-light: #bb73d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9831bc",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 284.46,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52761,
    "c": 0.21359,
    "h": 315.6
  },
  "luminance": 0.12503
}

Semantic roles & 50–950 ramp

primary
#9831BC
secondary
#92CA7F
accent
#E2466E
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9831BC

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

Preview Lab → · Contrast checker → · Palette generator →

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