#9839B9#9839B9

#9839B9 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.4% C 0.201 H 316.0°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#9839B9
RGBrgb(152, 57, 185)
HSLhsl(285, 53%, 47%)
HSVhsv(285, 69%, 73%)
CMYKcmyk(17.8%, 69.2%, 0%, 27.5%)
CIE-LABlab(42.92, 58.36, -49.77)
CIE-LCHlch(42.92, 76.70, 319.54°)
OKLaboklab(53.35% 0.145 -0.1399)
OKLCHoklch(53.35% 0.201 316)
XYZxyz(23.1676, 13.1053, 47.1987)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839B9 #5AB939
analogous
#5839B9 #9839B9 #B9399A
triadic
#9839B9 #B99839 #39B998
tetradic
#9839B9 #B95839 #5AB939 #399AB9
square
#9839B9 #B95839 #5AB939 #399AB9
split-complementary
#9839B9 #9AB939 #39B958
monochromatic
#4B1C5B #722B8A #9839B9 #B261CE #C990DD

Accessibility & contrast

On white

5.80
#9839B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#9839B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839B9
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839B9#FFFFFF#000000##FFFFFF
##9839B91.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#3868B6
Tritanopia (blue-blind)
#965275
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9839b9;
/* rgb */ color: rgb(152, 57, 185);
/* oklch */ color: oklch(53.4% 0.201 316.0);
Tailwind
colors: {
  custom: {
    50: '#ba77cf',
    500: '#9839b9',
    950: '#000000',
  },
}
SCSS
$custom: #9839b9;
$custom-light: #ba77cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9839b9",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 185
  },
  "hsl": {
    "h": 284.531,
    "s": 52.893,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53352,
    "c": 0.20148,
    "h": 316
  },
  "luminance": 0.13104
}

Semantic roles & 50–950 ramp

primary
#9839B9
secondary
#97C886
accent
#DC4B71
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9839B9

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

Preview Lab → · Contrast checker → · Palette generator →

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