#9839B5#9839B5

#9839B5 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 53.1% C 0.198 H 317.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#9839B5
RGBrgb(152, 57, 181)
HSLhsl(286, 52%, 47%)
HSVhsv(286, 69%, 71%)
CMYKcmyk(16%, 68.5%, 0%, 29%)
CIE-LABlab(42.67, 57.56, -47.83)
CIE-LCHlch(42.67, 74.84, 320.28°)
OKLaboklab(53.09% 0.1452 -0.1342)
OKLCHoklch(53.09% 0.198 317.3)
XYZxyz(22.7513, 12.9388, 45.0061)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839B5 #56B539
analogous
#5A39B5 #9839B5 #B53994
triadic
#9839B5 #B59839 #39B598
tetradic
#9839B5 #B55A39 #56B539 #3994B5
square
#9839B5 #B55A39 #56B539 #3994B5
split-complementary
#9839B5 #94B539 #39B55A
monochromatic
#4A1C58 #712A86 #9839B5 #B35FCD #C98DDB

Accessibility & contrast

On white

5.85
#9839B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#9839B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839B5
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839B5#FFFFFF#000000##FFFFFF
##9839B51.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#3C68B2
Tritanopia (blue-blind)
#975173
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9839b5;
/* rgb */ color: rgb(152, 57, 181);
/* oklch */ color: oklch(53.1% 0.198 317.3);
Tailwind
colors: {
  custom: {
    50: '#ba77cc',
    500: '#9839b5',
    950: '#000000',
  },
}
SCSS
$custom: #9839b5;
$custom-light: #ba77cc;
$custom-dark: #000000;
JSON
{
  "hex": "#9839b5",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 285.968,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.53092,
    "c": 0.19775,
    "h": 317.3
  },
  "luminance": 0.12938
}

Semantic roles & 50–950 ramp

primary
#9839B5
secondary
#93C684
accent
#DC4C6E
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9839B5

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

Preview Lab → · Contrast checker → · Palette generator →

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