#9839B3#9839B3

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

Color values

HEX#9839B3
RGBrgb(152, 57, 179)
HSLhsl(287, 52%, 46%)
HSVhsv(287, 68%, 70%)
CMYKcmyk(15.1%, 68.2%, 0%, 29.8%)
CIE-LABlab(42.55, 57.16, -46.84)
CIE-LCHlch(42.55, 73.90, 320.67°)
OKLaboklab(52.96% 0.1453 -0.1314)
OKLCHoklch(52.96% 0.196 317.9)
XYZxyz(22.5476, 12.8573, 43.9331)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839B3 #54B339
analogous
#5B39B3 #9839B3 #B33991
triadic
#9839B3 #B39839 #39B398
tetradic
#9839B3 #B35B39 #54B339 #3991B3
square
#9839B3 #B35B39 #54B339 #3991B3
split-complementary
#9839B3 #91B339 #39B35B
monochromatic
#491B56 #712A85 #9839B3 #B35ECC #C98CDA

Accessibility & contrast

On white

5.88
#9839B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9839B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839B3
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839B3#FFFFFF#000000##FFFFFF
##9839B31.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#3E67B0
Tritanopia (blue-blind)
#975072
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9839b3;
/* rgb */ color: rgb(152, 57, 179);
/* oklch */ color: oklch(53.0% 0.196 317.9);
Tailwind
colors: {
  custom: {
    50: '#ba77ca',
    500: '#9839b3',
    950: '#000000',
  },
}
SCSS
$custom: #9839b3;
$custom-light: #ba77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9839b3",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 179
  },
  "hsl": {
    "h": 286.721,
    "s": 51.695,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52964,
    "c": 0.19589,
    "h": 317.9
  },
  "luminance": 0.12856
}

Semantic roles & 50–950 ramp

primary
#9839B3
secondary
#92C583
accent
#DB4D6C
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9839B3

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

Preview Lab → · Contrast checker → · Palette generator →

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