#9831A2#9831A2

#9831A2 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.1% C 0.191 H 324.1°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#9831A2
RGBrgb(152, 49, 162)
HSLhsl(295, 54%, 41%)
HSVhsv(295, 70%, 64%)
CMYKcmyk(6.2%, 69.8%, 0%, 36.5%)
CIE-LABlab(40.38, 57.17, -40.20)
CIE-LCHlch(40.38, 69.88, 324.89°)
OKLaboklab(51.08% 0.1545 -0.1119)
OKLCHoklch(51.08% 0.191 324.1)
XYZxyz(20.5682, 11.4819, 35.3083)
Luminance0.1148 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9831A2 #3BA231
analogous
#6031A2 #9831A2 #A23174
triadic
#9831A2 #A29831 #31A298
tetradic
#9831A2 #A26031 #3BA231 #3174A2
square
#9831A2 #A26031 #3BA231 #3174A2
split-complementary
#9831A2 #74A231 #31A260
monochromatic
#401544 #6C2373 #9831A2 #BD48C8 #CE77D6

Accessibility & contrast

On white

6.37
#9831A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#9831A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9831A2
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9831A2#FFFFFF#000000##FFFFFF
##9831A21.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1257A5
Deuteranopia (green-blind)
#45639F
Tritanopia (blue-blind)
#9B4466
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9831a2;
/* rgb */ color: rgb(152, 49, 162);
/* oklch */ color: oklch(51.1% 0.191 324.1);
Tailwind
colors: {
  custom: {
    50: '#ba72be',
    500: '#9831a2',
    950: '#000000',
  },
}
SCSS
$custom: #9831a2;
$custom-light: #ba72be;
$custom-dark: #000000;
JSON
{
  "hex": "#9831a2",
  "rgb": {
    "r": 152,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 294.69,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51082,
    "c": 0.19078,
    "h": 324.1
  },
  "luminance": 0.11481
}

Semantic roles & 50–950 ramp

primary
#9831A2
secondary
#77BE71
accent
#DD4B58
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9831A2

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

Preview Lab → · Contrast checker → · Palette generator →

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