#9837A2#9837A2

#9837A2 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.7% C 0.183 H 323.9°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9837A2
RGBrgb(152, 55, 162)
HSLhsl(294, 49%, 43%)
HSVhsv(294, 66%, 64%)
CMYKcmyk(6.2%, 66%, 0%, 36.5%)
CIE-LABlab(41.24, 54.74, -38.82)
CIE-LCHlch(41.24, 67.11, 324.65°)
OKLaboklab(51.7% 0.1479 -0.1079)
OKLCHoklch(51.7% 0.183 323.9)
XYZxyz(20.8361, 12.0176, 35.3976)
Luminance0.1202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837A2 #41A237
analogous
#6337A2 #9837A2 #A23776
triadic
#9837A2 #A29837 #37A298
tetradic
#9837A2 #A26337 #41A237 #3776A2
square
#9837A2 #A26337 #41A237 #3776A2
split-complementary
#9837A2 #76A237 #37A263
monochromatic
#421847 #6D2774 #9837A2 #BA52C4 #CC80D4

Accessibility & contrast

On white

6.17
#9837A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9837A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837A2
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837A2#FFFFFF#000000##FFFFFF
##9837A21.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5AA5
Deuteranopia (green-blind)
#49659F
Tritanopia (blue-blind)
#9B4868
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9837a2;
/* rgb */ color: rgb(152, 55, 162);
/* oklch */ color: oklch(51.7% 0.183 323.9);
Tailwind
colors: {
  custom: {
    50: '#b975be',
    500: '#9837a2',
    950: '#000000',
  },
}
SCSS
$custom: #9837a2;
$custom-light: #b975be;
$custom-dark: #000000;
JSON
{
  "hex": "#9837a2",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 294.393,
    "s": 49.309,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51704,
    "c": 0.18307,
    "h": 323.9
  },
  "luminance": 0.12016
}

Semantic roles & 50–950 ramp

primary
#9837A2
secondary
#7EBD78
accent
#D94F5C
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9837A2

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

Preview Lab → · Contrast checker → · Palette generator →

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