#9831BE#9831BE

#9831BE is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.215 H 315.0°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9831BE
RGBrgb(152, 49, 190)
HSLhsl(284, 59%, 47%)
HSVhsv(284, 74%, 75%)
CMYKcmyk(20%, 74.2%, 0%, 25.5%)
CIE-LABlab(42.14, 62.50, -53.96)
CIE-LCHlch(42.14, 82.57, 319.19°)
OKLaboklab(52.9% 0.1524 -0.1522)
OKLCHoklch(52.9% 0.215 315)
XYZxyz(23.3400, 12.5906, 49.9060)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831BE #57BE31
analogous
#5231BE #9831BE #BE319E
triadic
#9831BE #BE9831 #31BE98
tetradic
#9831BE #BE5231 #57BE31 #319EBE
square
#9831BE #BE5231 #57BE31 #319EBE
split-complementary
#9831BE #9EBE31 #31BE52
monochromatic
#4A185D #71248D #9831BE #B358D4 #C989E1

Accessibility & contrast

On white

5.97
#9831BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9831BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9831BE
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9831BE#FFFFFF#000000##FFFFFF
##9831BE1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#2B66BB
Tritanopia (blue-blind)
#955075
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9831be;
/* rgb */ color: rgb(152, 49, 190);
/* oklch */ color: oklch(52.9% 0.215 315.0);
Tailwind
colors: {
  custom: {
    50: '#bb74d2',
    500: '#9831be',
    950: '#000000',
  },
}
SCSS
$custom: #9831be;
$custom-light: #bb74d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9831be",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 283.83,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52899,
    "c": 0.21537,
    "h": 315
  },
  "luminance": 0.1259
}

Semantic roles & 50–950 ramp

primary
#9831BE
secondary
#94CA80
accent
#E24670
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9831BE

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

Preview Lab → · Contrast checker → · Palette generator →

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