#9E36A2#9E36A2

#9E36A2 is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.5% C 0.187 H 326.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9E36A2
RGBrgb(158, 54, 162)
HSLhsl(298, 50%, 42%)
HSVhsv(298, 67%, 64%)
CMYKcmyk(2.5%, 66.7%, 0%, 36.5%)
CIE-LABlab(42.03, 56.60, -37.52)
CIE-LCHlch(42.03, 67.91, 326.46°)
OKLaboklab(52.45% 0.156 -0.104)
OKLCHoklch(52.45% 0.187 326.3)
XYZxyz(21.9409, 12.5175, 35.4359)
Luminance0.1252 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E36A2 #3AA236
analogous
#6836A2 #9E36A2 #A23670
triadic
#9E36A2 #A29E36 #36A29E
tetradic
#9E36A2 #A26836 #3AA236 #3670A2
square
#9E36A2 #A26836 #3AA236 #3670A2
split-complementary
#9E36A2 #70A236 #36A268
monochromatic
#441746 #712774 #9E36A2 #C050C5 #D17ED4

Accessibility & contrast

On white

5.99
#9E36A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#9E36A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E36A2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E36A2#FFFFFF#000000##FFFFFF
##9E36A21.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235BA5
Deuteranopia (green-blind)
#4D689F
Tritanopia (blue-blind)
#A24667
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9e36a2;
/* rgb */ color: rgb(158, 54, 162);
/* oklch */ color: oklch(52.5% 0.187 326.3);
Tailwind
colors: {
  custom: {
    50: '#be76be',
    500: '#9e36a2',
    950: '#000000',
  },
}
SCSS
$custom: #9e36a2;
$custom-light: #be76be;
$custom-dark: #000000;
JSON
{
  "hex": "#9e36a2",
  "rgb": {
    "r": 158,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 297.778,
    "s": 50,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52454,
    "c": 0.18744,
    "h": 326.3
  },
  "luminance": 0.12516
}

Semantic roles & 50–950 ramp

primary
#9E36A2
secondary
#79BD77
accent
#DA4E53
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9E36A2

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

Preview Lab → · Contrast checker → · Palette generator →

#9E36A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva