#9831B5#9831B5

#9831B5 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.3% C 0.207 H 317.7°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#9831B5
RGBrgb(152, 49, 181)
HSLhsl(287, 57%, 45%)
HSVhsv(287, 73%, 71%)
CMYKcmyk(16%, 72.9%, 0%, 29%)
CIE-LABlab(41.55, 60.74, -49.63)
CIE-LCHlch(41.55, 78.43, 320.75°)
OKLaboklab(52.29% 0.1535 -0.1395)
OKLCHoklch(52.29% 0.207 317.7)
XYZxyz(22.3865, 12.2092, 44.8845)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831B5 #4EB531
analogous
#5631B5 #9831B5 #B53190
triadic
#9831B5 #B59831 #31B598
tetradic
#9831B5 #B55631 #4EB531 #3190B5
square
#9831B5 #B55631 #4EB531 #3190B5
split-complementary
#9831B5 #90B531 #31B556
monochromatic
#471755 #702485 #9831B5 #B553D0 #CA83DD

Accessibility & contrast

On white

6.10
#9831B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#9831B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9831B5
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9831B5#FFFFFF#000000##FFFFFF
##9831B51.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#3665B2
Tritanopia (blue-blind)
#974C70
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9831b5;
/* rgb */ color: rgb(152, 49, 181);
/* oklch */ color: oklch(52.3% 0.207 317.7);
Tailwind
colors: {
  custom: {
    50: '#ba73cc',
    500: '#9831b5',
    950: '#000000',
  },
}
SCSS
$custom: #9831b5;
$custom-light: #ba73cc;
$custom-dark: #000000;
JSON
{
  "hex": "#9831b5",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 286.818,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52289,
    "c": 0.20736,
    "h": 317.7
  },
  "luminance": 0.12208
}

Semantic roles & 50–950 ramp

primary
#9831B5
secondary
#8CC77B
accent
#E14769
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9831B5

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

Preview Lab → · Contrast checker → · Palette generator →

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