#9839B4#9839B4

#9839B4 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 53.0% C 0.197 H 317.6°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#9839B4
RGBrgb(152, 57, 180)
HSLhsl(286, 52%, 46%)
HSVhsv(286, 68%, 71%)
CMYKcmyk(15.6%, 68.3%, 0%, 29.4%)
CIE-LABlab(42.61, 57.36, -47.34)
CIE-LCHlch(42.61, 74.37, 320.47°)
OKLaboklab(53.03% 0.1453 -0.1328)
OKLCHoklch(53.03% 0.197 317.6)
XYZxyz(22.6491, 12.8979, 44.4677)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839B4 #55B439
analogous
#5A39B4 #9839B4 #B43993
triadic
#9839B4 #B49839 #39B498
tetradic
#9839B4 #B45A39 #55B439 #3993B4
square
#9839B4 #B45A39 #55B439 #3993B4
split-complementary
#9839B4 #93B439 #39B45A
monochromatic
#491C57 #712A86 #9839B4 #B35ECC #C98DDB

Accessibility & contrast

On white

5.87
#9839B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#9839B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839B4
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839B4#FFFFFF#000000##FFFFFF
##9839B41.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#3D68B1
Tritanopia (blue-blind)
#975072
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9839b4;
/* rgb */ color: rgb(152, 57, 180);
/* oklch */ color: oklch(53.0% 0.197 317.6);
Tailwind
colors: {
  custom: {
    50: '#ba77cb',
    500: '#9839b4',
    950: '#000000',
  },
}
SCSS
$custom: #9839b4;
$custom-light: #ba77cb;
$custom-dark: #000000;
JSON
{
  "hex": "#9839b4",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 180
  },
  "hsl": {
    "h": 286.341,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53028,
    "c": 0.19682,
    "h": 317.6
  },
  "luminance": 0.12897
}

Semantic roles & 50–950 ramp

primary
#9839B4
secondary
#92C583
accent
#DB4C6D
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9839B4

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

Preview Lab → · Contrast checker → · Palette generator →

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