#9839AB#9839AB

#9839AB is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.5% C 0.189 H 320.6°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9839AB
RGBrgb(152, 57, 171)
HSLhsl(290, 50%, 45%)
HSVhsv(290, 67%, 67%)
CMYKcmyk(11.1%, 66.7%, 0%, 32.9%)
CIE-LABlab(42.07, 55.60, -42.88)
CIE-LCHlch(42.07, 70.21, 322.36°)
OKLaboklab(52.46% 0.1456 -0.1198)
OKLCHoklch(52.46% 0.189 320.6)
XYZxyz(21.7618, 12.5430, 39.7949)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839AB #4CAB39
analogous
#5F39AB #9839AB #AB3985
triadic
#9839AB #AB9839 #39AB98
tetradic
#9839AB #AB5F39 #4CAB39 #3985AB
square
#9839AB #AB5F39 #4CAB39 #3985AB
split-complementary
#9839AB #85AB39 #39AB5F
monochromatic
#461A4F #6F2A7D #9839AB #B559C8 #CA87D7

Accessibility & contrast

On white

5.99
#9839AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9839AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839AB
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839AB#FFFFFF#000000##FFFFFF
##9839AB1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155DAE
Deuteranopia (green-blind)
#4467A8
Tritanopia (blue-blind)
#994D6D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9839ab;
/* rgb */ color: rgb(152, 57, 171);
/* oklch */ color: oklch(52.5% 0.189 320.6);
Tailwind
colors: {
  custom: {
    50: '#ba77c4',
    500: '#9839ab',
    950: '#000000',
  },
}
SCSS
$custom: #9839ab;
$custom-light: #ba77c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9839ab",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 290,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52464,
    "c": 0.18851,
    "h": 320.6
  },
  "luminance": 0.12542
}

Semantic roles & 50–950 ramp

primary
#9839AB
secondary
#8AC17F
accent
#DA4E65
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9839AB

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

Preview Lab → · Contrast checker → · Palette generator →

#9839AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva