#9837AC#9837AC

#9837AC is a mid, vivid purple. Relative luminance 0.124; OKLCH L 52.3% C 0.192 H 320.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#9837AC
RGBrgb(152, 55, 172)
HSLhsl(290, 52%, 45%)
HSVhsv(290, 68%, 67%)
CMYKcmyk(11.6%, 68%, 0%, 32.5%)
CIE-LABlab(41.83, 56.63, -43.86)
CIE-LCHlch(41.83, 71.63, 322.24°)
OKLaboklab(52.31% 0.1478 -0.1226)
OKLCHoklch(52.31% 0.192 320.3)
XYZxyz(21.7606, 12.3874, 40.2665)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837AC #4BAC37
analogous
#5E37AC #9837AC #AC3785
triadic
#9837AC #AC9837 #37AC98
tetradic
#9837AC #AC5E37 #4BAC37 #3785AC
square
#9837AC #AC5E37 #4BAC37 #3785AC
split-complementary
#9837AC #85AC37 #37AC5E
monochromatic
#46194F #6F287E #9837AC #B657C9 #CA85D8

Accessibility & contrast

On white

6.04
#9837AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#9837AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837AC
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837AC#FFFFFF#000000##FFFFFF
##9837AC1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C5CAF
Deuteranopia (green-blind)
#4266A9
Tritanopia (blue-blind)
#994C6D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9837ac;
/* rgb */ color: rgb(152, 55, 172);
/* oklch */ color: oklch(52.3% 0.192 320.3);
Tailwind
colors: {
  custom: {
    50: '#ba76c5',
    500: '#9837ac',
    950: '#000000',
  },
}
SCSS
$custom: #9837ac;
$custom-light: #ba76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9837ac",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 289.744,
    "s": 51.542,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52309,
    "c": 0.19204,
    "h": 320.3
  },
  "luminance": 0.12386
}

Semantic roles & 50–950 ramp

primary
#9837AC
secondary
#89C27D
accent
#DB4D65
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9837AC

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

Preview Lab → · Contrast checker → · Palette generator →

#9837AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva