#9831C2#9831C2

#9831C2 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.2% C 0.219 H 313.9°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#9831C2
RGBrgb(152, 49, 194)
HSLhsl(283, 60%, 48%)
HSVhsv(283, 75%, 76%)
CMYKcmyk(21.6%, 74.7%, 0%, 23.9%)
CIE-LABlab(42.41, 63.30, -55.86)
CIE-LCHlch(42.41, 84.42, 318.57°)
OKLaboklab(53.18% 0.1519 -0.1577)
OKLCHoklch(53.18% 0.219 313.9)
XYZxyz(23.7831, 12.7679, 52.2401)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831C2 #5BC231
analogous
#5031C2 #9831C2 #C231A3
triadic
#9831C2 #C29831 #31C298
tetradic
#9831C2 #C25031 #5BC231 #31A3C2
square
#9831C2 #C25031 #5BC231 #31A3C2
split-complementary
#9831C2 #A3C231 #31C250
monochromatic
#4B1860 #722591 #9831C2 #B25BD6 #C98CE2

Accessibility & contrast

On white

5.91
#9831C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#9831C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9831C2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9831C2#FFFFFF#000000##FFFFFF
##9831C21.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#2566BF
Tritanopia (blue-blind)
#945278
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9831c2;
/* rgb */ color: rgb(152, 49, 194);
/* oklch */ color: oklch(53.2% 0.219 313.9);
Tailwind
colors: {
  custom: {
    50: '#bb74d5',
    500: '#9831c2',
    950: '#000000',
  },
}
SCSS
$custom: #9831c2;
$custom-light: #bb74d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9831c2",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 282.621,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53177,
    "c": 0.21896,
    "h": 313.9
  },
  "luminance": 0.12767
}

Semantic roles & 50–950 ramp

primary
#9831C2
secondary
#98CC83
accent
#E34573
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9831C2

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

Preview Lab → · Contrast checker → · Palette generator →

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