#9839B8#9839B8

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

Color values

HEX#9839B8
RGBrgb(152, 57, 184)
HSLhsl(285, 53%, 47%)
HSVhsv(285, 69%, 72%)
CMYKcmyk(17.4%, 69%, 0%, 27.8%)
CIE-LABlab(42.86, 58.16, -49.29)
CIE-LCHlch(42.86, 76.24, 319.72°)
OKLaboklab(53.29% 0.145 -0.1385)
OKLCHoklch(53.29% 0.201 316.3)
XYZxyz(23.0624, 13.0632, 46.6447)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839B8 #59B839
analogous
#5939B8 #9839B8 #B83999
triadic
#9839B8 #B89839 #39B898
tetradic
#9839B8 #B85939 #59B839 #3999B8
square
#9839B8 #B85939 #59B839 #3999B8
split-complementary
#9839B8 #99B839 #39B859
monochromatic
#4B1C5B #712B89 #9839B8 #B260CE #C98FDC

Accessibility & contrast

On white

5.81
#9839B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#9839B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839B8
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839B8#FFFFFF#000000##FFFFFF
##9839B81.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#3968B5
Tritanopia (blue-blind)
#965274
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9839b8;
/* rgb */ color: rgb(152, 57, 184);
/* oklch */ color: oklch(53.3% 0.201 316.3);
Tailwind
colors: {
  custom: {
    50: '#ba77ce',
    500: '#9839b8',
    950: '#000000',
  },
}
SCSS
$custom: #9839b8;
$custom-light: #ba77ce;
$custom-dark: #000000;
JSON
{
  "hex": "#9839b8",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 184
  },
  "hsl": {
    "h": 284.882,
    "s": 52.697,
    "l": 47.255
  },
  "oklch": {
    "l": 0.53286,
    "c": 0.20055,
    "h": 316.3
  },
  "luminance": 0.13062
}

Semantic roles & 50–950 ramp

primary
#9839B8
secondary
#96C786
accent
#DC4C70
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9839B8

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

Preview Lab → · Contrast checker → · Palette generator →

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