#9837A5#9837A5

#9837A5 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.9% C 0.186 H 322.8°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9837A5
RGBrgb(152, 55, 165)
HSLhsl(293, 50%, 43%)
HSVhsv(293, 67%, 65%)
CMYKcmyk(7.9%, 66.7%, 0%, 35.3%)
CIE-LABlab(41.41, 55.30, -40.35)
CIE-LCHlch(41.41, 68.45, 323.89°)
OKLaboklab(51.88% 0.1479 -0.1124)
OKLCHoklch(51.88% 0.186 322.8)
XYZxyz(21.1059, 12.1256, 36.8188)
Luminance0.1212 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837A5 #44A537
analogous
#6137A5 #9837A5 #A5377B
triadic
#9837A5 #A59837 #37A598
tetradic
#9837A5 #A56137 #44A537 #377BA5
square
#9837A5 #A56137 #44A537 #377BA5
split-complementary
#9837A5 #7BA537 #37A561
monochromatic
#431849 #6E2877 #9837A5 #B853C6 #CB81D5

Accessibility & contrast

On white

6.13
#9837A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#9837A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837A5
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837A5#FFFFFF#000000##FFFFFF
##9837A51.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5AA8
Deuteranopia (green-blind)
#4765A2
Tritanopia (blue-blind)
#9A4969
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9837a5;
/* rgb */ color: rgb(152, 55, 165);
/* oklch */ color: oklch(51.9% 0.186 322.8);
Tailwind
colors: {
  custom: {
    50: '#b975c0',
    500: '#9837a5',
    950: '#000000',
  },
}
SCSS
$custom: #9837a5;
$custom-light: #b975c0;
$custom-dark: #000000;
JSON
{
  "hex": "#9837a5",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 165
  },
  "hsl": {
    "h": 292.909,
    "s": 50,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51882,
    "c": 0.18574,
    "h": 322.8
  },
  "luminance": 0.12124
}

Semantic roles & 50–950 ramp

primary
#9837A5
secondary
#81BF79
accent
#DA4E5F
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9837A5

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

Preview Lab → · Contrast checker → · Palette generator →

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