#9831BF#9831BF

#9831BF is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.0% C 0.216 H 314.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#9831BF
RGBrgb(152, 49, 191)
HSLhsl(284, 59%, 47%)
HSVhsv(284, 74%, 75%)
CMYKcmyk(20.4%, 74.3%, 0%, 25.1%)
CIE-LABlab(42.21, 62.70, -54.44)
CIE-LCHlch(42.21, 83.04, 319.03°)
OKLaboklab(52.97% 0.1523 -0.1536)
OKLCHoklch(52.97% 0.216 314.8)
XYZxyz(23.4496, 12.6345, 50.4836)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831BF #58BF31
analogous
#5131BF #9831BF #BF319F
triadic
#9831BF #BF9831 #31BF98
tetradic
#9831BF #BF5131 #58BF31 #319FBF
square
#9831BF #BF5131 #58BF31 #319FBF
split-complementary
#9831BF #9FBF31 #31BF51
monochromatic
#4A185E #71258E #9831BF #B259D4 #C98AE1

Accessibility & contrast

On white

5.95
#9831BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9831BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9831BF
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9831BF#FFFFFF#000000##FFFFFF
##9831BF1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#2A66BC
Tritanopia (blue-blind)
#955076
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9831bf;
/* rgb */ color: rgb(152, 49, 191);
/* oklch */ color: oklch(53.0% 0.216 314.8);
Tailwind
colors: {
  custom: {
    50: '#bb74d3',
    500: '#9831bf',
    950: '#000000',
  },
}
SCSS
$custom: #9831bf;
$custom-light: #bb74d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9831bf",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 283.521,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.52968,
    "c": 0.21627,
    "h": 314.8
  },
  "luminance": 0.12634
}

Semantic roles & 50–950 ramp

primary
#9831BF
secondary
#95CB81
accent
#E24571
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9831BF

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

Preview Lab → · Contrast checker → · Palette generator →

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