#9839BF#9839BF

#9839BF is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.8% C 0.207 H 314.2°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#9839BF
RGBrgb(152, 57, 191)
HSLhsl(283, 54%, 49%)
HSVhsv(283, 70%, 75%)
CMYKcmyk(20.4%, 70.2%, 0%, 25.1%)
CIE-LABlab(43.31, 59.58, -52.67)
CIE-LCHlch(43.31, 79.52, 318.52°)
OKLaboklab(53.75% 0.1444 -0.1484)
OKLCHoklch(53.75% 0.207 314.2)
XYZxyz(23.8144, 13.3640, 50.6052)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839BF #60BF39
analogous
#5539BF #9839BF #BF39A3
triadic
#9839BF #BF9839 #39BF98
tetradic
#9839BF #BF5539 #60BF39 #39A3BF
square
#9839BF #BF5539 #60BF39 #39A3BF
split-complementary
#9839BF #A3BF39 #39BF55
monochromatic
#4D1D61 #722B90 #9839BF #B164D1 #C993DF

Accessibility & contrast

On white

5.72
#9839BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#9839BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839BF
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839BF#FFFFFF#000000##FFFFFF
##9839BF1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#3269BC
Tritanopia (blue-blind)
#945578
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9839bf;
/* rgb */ color: rgb(152, 57, 191);
/* oklch */ color: oklch(53.8% 0.207 314.2);
Tailwind
colors: {
  custom: {
    50: '#ba77d3',
    500: '#9839bf',
    950: '#000000',
  },
}
SCSS
$custom: #9839bf;
$custom-light: #ba77d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9839bf",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 191
  },
  "hsl": {
    "h": 282.537,
    "s": 54.032,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5375,
    "c": 0.2071,
    "h": 314.2
  },
  "luminance": 0.13363
}

Semantic roles & 50–950 ramp

primary
#9839BF
secondary
#9CCA8A
accent
#DD4A75
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9839BF

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

Preview Lab → · Contrast checker → · Palette generator →

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