#9839B7#9839B7

#9839B7 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.2% C 0.200 H 316.6°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#9839B7
RGBrgb(152, 57, 183)
HSLhsl(285, 53%, 47%)
HSVhsv(285, 69%, 72%)
CMYKcmyk(16.9%, 68.9%, 0%, 28.2%)
CIE-LABlab(42.80, 57.96, -48.80)
CIE-LCHlch(42.80, 75.77, 319.90°)
OKLaboklab(53.22% 0.1451 -0.1371)
OKLCHoklch(53.22% 0.2 316.6)
XYZxyz(22.9580, 13.0215, 46.0946)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839B7 #58B739
analogous
#5939B7 #9839B7 #B73997
triadic
#9839B7 #B79839 #39B798
tetradic
#9839B7 #B75939 #58B739 #3997B7
square
#9839B7 #B75939 #58B739 #3997B7
split-complementary
#9839B7 #97B739 #39B759
monochromatic
#4A1C5A #712A88 #9839B7 #B260CD #C98EDC

Accessibility & contrast

On white

5.83
#9839B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#9839B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839B7
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839B7#FFFFFF#000000##FFFFFF
##9839B71.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#3A68B4
Tritanopia (blue-blind)
#965274
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9839b7;
/* rgb */ color: rgb(152, 57, 183);
/* oklch */ color: oklch(53.2% 0.200 316.6);
Tailwind
colors: {
  custom: {
    50: '#ba77cd',
    500: '#9839b7',
    950: '#000000',
  },
}
SCSS
$custom: #9839b7;
$custom-light: #ba77cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9839b7",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 285.238,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53221,
    "c": 0.19961,
    "h": 316.6
  },
  "luminance": 0.13021
}

Semantic roles & 50–950 ramp

primary
#9839B7
secondary
#95C785
accent
#DC4C6F
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9839B7

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

Preview Lab → · Contrast checker → · Palette generator →

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