#9839AC#9839AC

#9839AC is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.5% C 0.189 H 320.2°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9839AC
RGBrgb(152, 57, 172)
HSLhsl(290, 50%, 45%)
HSVhsv(290, 67%, 67%)
CMYKcmyk(11.6%, 66.9%, 0%, 32.5%)
CIE-LABlab(42.13, 55.79, -43.38)
CIE-LCHlch(42.13, 70.67, 322.13°)
OKLaboklab(52.53% 0.1456 -0.1212)
OKLCHoklch(52.53% 0.189 320.2)
XYZxyz(21.8575, 12.5813, 40.2988)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9839AC #4DAC39
analogous
#5E39AC #9839AC #AC3987
triadic
#9839AC #AC9839 #39AC98
tetradic
#9839AC #AC5E39 #4DAC39 #3987AC
square
#9839AC #AC5E39 #4DAC39 #3987AC
split-complementary
#9839AC #87AC39 #39AC5E
monochromatic
#471B50 #6F2A7E #9839AC #B55AC8 #CA88D8

Accessibility & contrast

On white

5.97
#9839AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9839AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9839AC
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9839AC#FFFFFF#000000##FFFFFF
##9839AC1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135DAF
Deuteranopia (green-blind)
#4367A9
Tritanopia (blue-blind)
#994D6E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9839ac;
/* rgb */ color: rgb(152, 57, 172);
/* oklch */ color: oklch(52.5% 0.189 320.2);
Tailwind
colors: {
  custom: {
    50: '#ba77c5',
    500: '#9839ac',
    950: '#000000',
  },
}
SCSS
$custom: #9839ac;
$custom-light: #ba77c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9839ac",
  "rgb": {
    "r": 152,
    "g": 57,
    "b": 172
  },
  "hsl": {
    "h": 289.565,
    "s": 50.218,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52525,
    "c": 0.18942,
    "h": 320.2
  },
  "luminance": 0.1258
}

Semantic roles & 50–950 ramp

primary
#9839AC
secondary
#8BC27F
accent
#DA4E66
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9839AC

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

Preview Lab → · Contrast checker → · Palette generator →

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