#9836BA#9836BA

#9836BA is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.1% C 0.206 H 315.9°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#9836BA
RGBrgb(152, 54, 186)
HSLhsl(285, 55%, 47%)
HSVhsv(285, 71%, 73%)
CMYKcmyk(18.3%, 71%, 0%, 27.1%)
CIE-LABlab(42.55, 59.79, -50.96)
CIE-LCHlch(42.55, 78.55, 319.56°)
OKLaboklab(53.11% 0.148 -0.1434)
OKLCHoklch(53.11% 0.206 315.9)
XYZxyz(23.1296, 12.8598, 47.7087)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836BA #58BA36
analogous
#5636BA #9836BA #BA369A
triadic
#9836BA #BA9836 #36BA98
tetradic
#9836BA #BA5636 #58BA36 #369ABA
square
#9836BA #BA5636 #58BA36 #369ABA
split-complementary
#9836BA #9ABA36 #36BA56
monochromatic
#4A1A5B #71288B #9836BA #B25DD0 #C98DDE

Accessibility & contrast

On white

5.88
#9836BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9836BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9836BA
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836BA#FFFFFF#000000##FFFFFF
##9836BA1.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)
#005FBE
Deuteranopia (green-blind)
#3567B7
Tritanopia (blue-blind)
#965174
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9836ba;
/* rgb */ color: rgb(152, 54, 186);
/* oklch */ color: oklch(53.1% 0.206 315.9);
Tailwind
colors: {
  custom: {
    50: '#ba76cf',
    500: '#9836ba',
    950: '#000000',
  },
}
SCSS
$custom: #9836ba;
$custom-light: #ba76cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9836ba",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 186
  },
  "hsl": {
    "h": 284.545,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53108,
    "c": 0.20607,
    "h": 315.9
  },
  "luminance": 0.12859
}

Semantic roles & 50–950 ramp

primary
#9836BA
secondary
#95C884
accent
#DE4970
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9836BA

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

Preview Lab → · Contrast checker → · Palette generator →

#9836BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva