#9836B7#9836B7

#9836B7 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 52.9% C 0.203 H 316.8°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#9836B7
RGBrgb(152, 54, 183)
HSLhsl(286, 54%, 46%)
HSVhsv(286, 70%, 72%)
CMYKcmyk(16.9%, 70.5%, 0%, 28.2%)
CIE-LABlab(42.36, 59.19, -49.50)
CIE-LCHlch(42.36, 77.16, 320.09°)
OKLaboklab(52.91% 0.1483 -0.1391)
OKLCHoklch(52.91% 0.203 316.8)
XYZxyz(22.8140, 12.7336, 46.0466)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836B7 #55B736
analogous
#5836B7 #9836B7 #B73696
triadic
#9836B7 #B79836 #36B798
tetradic
#9836B7 #B75836 #55B736 #3696B7
square
#9836B7 #B75836 #55B736 #3696B7
split-complementary
#9836B7 #96B736 #36B758
monochromatic
#491A58 #712888 #9836B7 #B35BCF #C98BDD

Accessibility & contrast

On white

5.92
#9836B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#9836B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9836B7
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836B7#FFFFFF#000000##FFFFFF
##9836B71.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#3867B4
Tritanopia (blue-blind)
#965073
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9836b7;
/* rgb */ color: rgb(152, 54, 183);
/* oklch */ color: oklch(52.9% 0.203 316.8);
Tailwind
colors: {
  custom: {
    50: '#ba76cd',
    500: '#9836b7',
    950: '#000000',
  },
}
SCSS
$custom: #9836b7;
$custom-light: #ba76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9836b7",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 183
  },
  "hsl": {
    "h": 285.581,
    "s": 54.43,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52909,
    "c": 0.20332,
    "h": 316.8
  },
  "luminance": 0.12733
}

Semantic roles & 50–950 ramp

primary
#9836B7
secondary
#92C782
accent
#DE4A6E
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9836B7

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

Preview Lab → · Contrast checker → · Palette generator →

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