#9839BB#9839BB

#9839BB is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.5% C 0.203 H 315.4°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#9839BB
RGBrgb(152, 57, 187)
HSLhsl(284, 53%, 48%)
HSVhsv(284, 70%, 73%)
CMYKcmyk(18.7%, 69.5%, 0%, 26.7%)
CIE-LABlab(43.05, 58.76, -50.74)
CIE-LCHlch(43.05, 77.64, 319.19°)
OKLaboklab(53.48% 0.1448 -0.1428)
OKLCHoklch(53.48% 0.203 315.4)
XYZxyz(23.3802, 13.1904, 48.3185)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839BB #5CBB39
analogous
#5739BB #9839BB #BB399D
triadic
#9839BB #BB9839 #39BB98
tetradic
#9839BB #BB5739 #5CBB39 #399DBB
square
#9839BB #BB5739 #5CBB39 #399DBB
split-complementary
#9839BB #9DBB39 #39BB57
monochromatic
#4C1C5D #722B8C #9839BB #B262CF #C991DD

Accessibility & contrast

On white

5.77
#9839BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9839BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839BB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839BB#FFFFFF#000000##FFFFFF
##9839BB1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#3668B8
Tritanopia (blue-blind)
#955376
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9839bb;
/* rgb */ color: rgb(152, 57, 187);
/* oklch */ color: oklch(53.5% 0.203 315.4);
Tailwind
colors: {
  custom: {
    50: '#ba77d0',
    500: '#9839bb',
    950: '#000000',
  },
}
SCSS
$custom: #9839bb;
$custom-light: #ba77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9839bb",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 187
  },
  "hsl": {
    "h": 283.846,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53483,
    "c": 0.20335,
    "h": 315.4
  },
  "luminance": 0.1319
}

Semantic roles & 50–950 ramp

primary
#9839BB
secondary
#99C887
accent
#DD4B72
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9839BB

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

Preview Lab → · Contrast checker → · Palette generator →

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