#9831B3#9831B3

#9831B3 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.2% C 0.206 H 318.4°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9831B3
RGBrgb(152, 49, 179)
HSLhsl(288, 57%, 45%)
HSVhsv(288, 73%, 70%)
CMYKcmyk(15.1%, 72.6%, 0%, 29.8%)
CIE-LABlab(41.42, 60.35, -48.65)
CIE-LCHlch(41.42, 77.52, 321.12°)
OKLaboklab(52.16% 0.1536 -0.1366)
OKLCHoklch(52.16% 0.206 318.4)
XYZxyz(22.1828, 12.1277, 43.8115)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831B3 #4CB331
analogous
#5731B3 #9831B3 #B3318D
triadic
#9831B3 #B39831 #31B398
tetradic
#9831B3 #B35731 #4CB331 #318DB3
square
#9831B3 #B35731 #4CB331 #318DB3
split-complementary
#9831B3 #8DB331 #31B357
monochromatic
#461753 #6F2483 #9831B3 #B552D0 #CA82DD

Accessibility & contrast

On white

6.13
#9831B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9831B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9831B3
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9831B3#FFFFFF#000000##FFFFFF
##9831B31.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#3865B0
Tritanopia (blue-blind)
#974B6F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9831b3;
/* rgb */ color: rgb(152, 49, 179);
/* oklch */ color: oklch(52.2% 0.206 318.4);
Tailwind
colors: {
  custom: {
    50: '#ba73ca',
    500: '#9831b3',
    950: '#000000',
  },
}
SCSS
$custom: #9831b3;
$custom-light: #ba73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9831b3",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 287.538,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52157,
    "c": 0.20559,
    "h": 318.4
  },
  "luminance": 0.12127
}

Semantic roles & 50–950 ramp

primary
#9831B3
secondary
#8AC67A
accent
#E04867
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9831B3

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

Preview Lab → · Contrast checker → · Palette generator →

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