#9839B2#9839B2

#9839B2 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.9% C 0.195 H 318.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9839B2
RGBrgb(152, 57, 178)
HSLhsl(287, 51%, 46%)
HSVhsv(287, 68%, 70%)
CMYKcmyk(14.6%, 68%, 0%, 30.2%)
CIE-LABlab(42.49, 56.96, -46.35)
CIE-LCHlch(42.49, 73.44, 320.86°)
OKLaboklab(52.9% 0.1454 -0.1299)
OKLCHoklch(52.9% 0.195 318.2)
XYZxyz(22.4468, 12.8170, 43.4024)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839B2 #53B239
analogous
#5B39B2 #9839B2 #B2398F
triadic
#9839B2 #B29839 #39B298
tetradic
#9839B2 #B25B39 #53B239 #398FB2
square
#9839B2 #B25B39 #53B239 #398FB2
split-complementary
#9839B2 #8FB239 #39B25B
monochromatic
#491B55 #702A84 #9839B2 #B35DCB #C98BDA

Accessibility & contrast

On white

5.89
#9839B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#9839B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839B2
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839B2#FFFFFF#000000##FFFFFF
##9839B21.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#3F67AF
Tritanopia (blue-blind)
#974F71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9839b2;
/* rgb */ color: rgb(152, 57, 178);
/* oklch */ color: oklch(52.9% 0.195 318.2);
Tailwind
colors: {
  custom: {
    50: '#ba77ca',
    500: '#9839b2',
    950: '#000000',
  },
}
SCSS
$custom: #9839b2;
$custom-light: #ba77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9839b2",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 287.107,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.529,
    "c": 0.19496,
    "h": 318.2
  },
  "luminance": 0.12816
}

Semantic roles & 50–950 ramp

primary
#9839B2
secondary
#91C482
accent
#DB4D6B
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9839B2

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

Preview Lab → · Contrast checker → · Palette generator →

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