#9836A2#9836A2

#9836A2 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.6% C 0.184 H 323.9°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#9836A2
RGBrgb(152, 54, 162)
HSLhsl(294, 50%, 42%)
HSVhsv(294, 67%, 64%)
CMYKcmyk(6.2%, 66.7%, 0%, 36.5%)
CIE-LABlab(41.09, 55.16, -39.06)
CIE-LCHlch(41.09, 67.59, 324.70°)
OKLaboklab(51.6% 0.149 -0.1086)
OKLCHoklch(51.6% 0.184 323.9)
XYZxyz(20.7891, 11.9236, 35.3819)
Luminance0.1192 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836A2 #40A236
analogous
#6236A2 #9836A2 #A23676
triadic
#9836A2 #A29836 #36A298
tetradic
#9836A2 #A26236 #40A236 #3676A2
square
#9836A2 #A26236 #40A236 #3676A2
split-complementary
#9836A2 #76A236 #36A262
monochromatic
#421746 #6D2774 #9836A2 #BA50C5 #CC7ED4

Accessibility & contrast

On white

6.20
#9836A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9836A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9836A2
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836A2#FFFFFF#000000##FFFFFF
##9836A21.006.203.386.20
#FFFFFF6.201.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D59A5
Deuteranopia (green-blind)
#48659F
Tritanopia (blue-blind)
#9B4767
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9836a2;
/* rgb */ color: rgb(152, 54, 162);
/* oklch */ color: oklch(51.6% 0.184 323.9);
Tailwind
colors: {
  custom: {
    50: '#b975be',
    500: '#9836a2',
    950: '#000000',
  },
}
SCSS
$custom: #9836a2;
$custom-light: #b975be;
$custom-dark: #000000;
JSON
{
  "hex": "#9836a2",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 294.444,
    "s": 50,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51596,
    "c": 0.1844,
    "h": 323.9
  },
  "luminance": 0.11922
}

Semantic roles & 50–950 ramp

primary
#9836A2
secondary
#7DBD77
accent
#DA4E5B
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9836A2

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

Preview Lab → · Contrast checker → · Palette generator →

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