#9831C6#9831C6

#9831C6 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.223 H 312.8°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#9831C6
RGBrgb(152, 49, 198)
HSLhsl(281, 60%, 48%)
HSVhsv(281, 75%, 78%)
CMYKcmyk(23.2%, 75.3%, 0%, 22.4%)
CIE-LABlab(42.69, 64.11, -57.74)
CIE-LCHlch(42.69, 86.28, 317.99°)
OKLaboklab(53.46% 0.1512 -0.1633)
OKLCHoklch(53.46% 0.223 312.8)
XYZxyz(24.2384, 12.9500, 54.6379)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831C6 #5FC631
analogous
#4E31C6 #9831C6 #C631A9
triadic
#9831C6 #C69831 #31C698
tetradic
#9831C6 #C64E31 #5FC631 #31A9C6
square
#9831C6 #C64E31 #5FC631 #31A9C6
split-complementary
#9831C6 #A9C631 #31C64E
monochromatic
#4D1964 #722595 #9831C6 #B15DD7 #C98EE3

Accessibility & contrast

On white

5.85
#9831C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#9831C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9831C6
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9831C6#FFFFFF#000000##FFFFFF
##9831C61.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CA
Deuteranopia (green-blind)
#1E67C3
Tritanopia (blue-blind)
#93537A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9831c6;
/* rgb */ color: rgb(152, 49, 198);
/* oklch */ color: oklch(53.5% 0.223 312.8);
Tailwind
colors: {
  custom: {
    50: '#bb74d8',
    500: '#9831c6',
    950: '#000000',
  },
}
SCSS
$custom: #9831c6;
$custom-light: #bb74d8;
$custom-dark: #000000;
JSON
{
  "hex": "#9831c6",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 281.477,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.5346,
    "c": 0.22255,
    "h": 312.8
  },
  "luminance": 0.12949
}

Semantic roles & 50–950 ramp

primary
#9831C6
secondary
#9CCE85
accent
#E34475
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#120915
muted
#817B83

Preview Lab

Preview with #9831C6

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

Preview Lab → · Contrast checker → · Palette generator →

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