#9836B3#9836B3

#9836B3 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.6% C 0.200 H 318.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9836B3
RGBrgb(152, 54, 179)
HSLhsl(287, 54%, 46%)
HSVhsv(287, 70%, 70%)
CMYKcmyk(15.1%, 69.8%, 0%, 29.8%)
CIE-LABlab(42.11, 58.40, -47.55)
CIE-LCHlch(42.11, 75.31, 320.85°)
OKLaboklab(52.65% 0.1485 -0.1334)
OKLCHoklch(52.65% 0.2 318.1)
XYZxyz(22.4036, 12.5694, 43.8851)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836B3 #51B336
analogous
#5936B3 #9836B3 #B3368F
triadic
#9836B3 #B39836 #36B398
tetradic
#9836B3 #B35936 #51B336 #368FB3
square
#9836B3 #B35936 #51B336 #368FB3
split-complementary
#9836B3 #8FB336 #36B359
monochromatic
#481A55 #702884 #9836B3 #B459CD #C988DB

Accessibility & contrast

On white

5.98
#9836B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9836B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9836B3
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836B3#FFFFFF#000000##FFFFFF
##9836B31.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#3B66B0
Tritanopia (blue-blind)
#974E71
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9836b3;
/* rgb */ color: rgb(152, 54, 179);
/* oklch */ color: oklch(52.6% 0.200 318.1);
Tailwind
colors: {
  custom: {
    50: '#ba75ca',
    500: '#9836b3',
    950: '#000000',
  },
}
SCSS
$custom: #9836b3;
$custom-light: #ba75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9836b3",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 179
  },
  "hsl": {
    "h": 287.04,
    "s": 53.648,
    "l": 45.686
  },
  "oklch": {
    "l": 0.52648,
    "c": 0.19966,
    "h": 318.1
  },
  "luminance": 0.12568
}

Semantic roles & 50–950 ramp

primary
#9836B3
secondary
#8FC580
accent
#DD4B6A
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9836B3

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

Preview Lab → · Contrast checker → · Palette generator →

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