#9831C9#9831C9

#9831C9 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.7% C 0.225 H 312.0°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#9831C9
RGBrgb(152, 49, 201)
HSLhsl(281, 61%, 49%)
HSVhsv(281, 76%, 79%)
CMYKcmyk(24.4%, 75.6%, 0%, 21.2%)
CIE-LABlab(42.90, 64.72, -59.15)
CIE-LCHlch(42.90, 87.67, 317.57°)
OKLaboklab(53.68% 0.1507 -0.1674)
OKLCHoklch(53.68% 0.225 312)
XYZxyz(24.5879, 13.0898, 56.4784)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831C9 #62C931
analogous
#4C31C9 #9831C9 #C931AE
triadic
#9831C9 #C99831 #31C998
tetradic
#9831C9 #C94C31 #62C931 #31AEC9
square
#9831C9 #C94C31 #62C931 #31AEC9
split-complementary
#9831C9 #AEC931 #31C94C
monochromatic
#4E1967 #732598 #9831C9 #B15FD8 #C990E4

Accessibility & contrast

On white

5.80
#9831C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#9831C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9831C9
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9831C9#FFFFFF#000000##FFFFFF
##9831C91.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CD
Deuteranopia (green-blind)
#1767C6
Tritanopia (blue-blind)
#92557C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9831c9;
/* rgb */ color: rgb(152, 49, 201);
/* oklch */ color: oklch(53.7% 0.225 312.0);
Tailwind
colors: {
  custom: {
    50: '#bb74da',
    500: '#9831c9',
    950: '#000000',
  },
}
SCSS
$custom: #9831c9;
$custom-light: #bb74da;
$custom-dark: #000000;
JSON
{
  "hex": "#9831c9",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 280.658,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53675,
    "c": 0.22525,
    "h": 312
  },
  "luminance": 0.13089
}

Semantic roles & 50–950 ramp

primary
#9831C9
secondary
#9ECF87
accent
#E44477
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9831C9

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

Preview Lab → · Contrast checker → · Palette generator →

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