#9837AB#9837AB

#9837AB is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.2% C 0.191 H 320.7°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9837AB
RGBrgb(152, 55, 171)
HSLhsl(290, 51%, 44%)
HSVhsv(290, 68%, 67%)
CMYKcmyk(11.1%, 67.8%, 0%, 32.9%)
CIE-LABlab(41.77, 56.44, -43.36)
CIE-LCHlch(41.77, 71.17, 322.47°)
OKLaboklab(52.25% 0.1478 -0.1212)
OKLCHoklch(52.25% 0.191 320.7)
XYZxyz(21.6649, 12.3491, 39.7626)
Luminance0.1235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837AB #4AAB37
analogous
#5E37AB #9837AB #AB3784
triadic
#9837AB #AB9837 #37AB98
tetradic
#9837AB #AB5E37 #4AAB37 #3784AB
square
#9837AB #AB5E37 #4AAB37 #3784AB
split-complementary
#9837AB #84AB37 #37AB5E
monochromatic
#46194E #6F287D #9837AB #B656C9 #CA85D8

Accessibility & contrast

On white

6.05
#9837AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9837AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837AB
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837AB#FFFFFF#000000##FFFFFF
##9837AB1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5CAE
Deuteranopia (green-blind)
#4366A8
Tritanopia (blue-blind)
#994B6D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9837ab;
/* rgb */ color: rgb(152, 55, 171);
/* oklch */ color: oklch(52.2% 0.191 320.7);
Tailwind
colors: {
  custom: {
    50: '#ba76c4',
    500: '#9837ab',
    950: '#000000',
  },
}
SCSS
$custom: #9837ab;
$custom-light: #ba76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9837ab",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 290.172,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52247,
    "c": 0.19113,
    "h": 320.7
  },
  "luminance": 0.12348
}

Semantic roles & 50–950 ramp

primary
#9837AB
secondary
#88C17C
accent
#DB4D64
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9837AB

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

Preview Lab → · Contrast checker → · Palette generator →

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