#9837B7#9837B7

#9837B7 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.0% C 0.202 H 316.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9837B7
RGBrgb(152, 55, 183)
HSLhsl(285, 54%, 47%)
HSVhsv(285, 70%, 72%)
CMYKcmyk(16.9%, 69.9%, 0%, 28.2%)
CIE-LABlab(42.50, 58.78, -49.27)
CIE-LCHlch(42.50, 76.70, 320.03°)
OKLaboklab(53.01% 0.1472 -0.1385)
OKLCHoklch(53.01% 0.202 316.8)
XYZxyz(22.8610, 12.8276, 46.0623)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837B7 #56B737
analogous
#5837B7 #9837B7 #B73796
triadic
#9837B7 #B79837 #37B798
tetradic
#9837B7 #B75837 #56B737 #3796B7
square
#9837B7 #B75837 #56B737 #3796B7
split-complementary
#9837B7 #96B737 #37B758
monochromatic
#4A1B59 #712988 #9837B7 #B35DCE #C98CDC

Accessibility & contrast

On white

5.89
#9837B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9837B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837B7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837B7#FFFFFF#000000##FFFFFF
##9837B71.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#3967B4
Tritanopia (blue-blind)
#965073
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9837b7;
/* rgb */ color: rgb(152, 55, 183);
/* oklch */ color: oklch(53.0% 0.202 316.8);
Tailwind
colors: {
  custom: {
    50: '#ba76cd',
    500: '#9837b7',
    950: '#000000',
  },
}
SCSS
$custom: #9837b7;
$custom-light: #ba76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9837b7",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 183
  },
  "hsl": {
    "h": 285.469,
    "s": 53.782,
    "l": 46.667
  },
  "oklch": {
    "l": 0.53011,
    "c": 0.20209,
    "h": 316.8
  },
  "luminance": 0.12827
}

Semantic roles & 50–950 ramp

primary
#9837B7
secondary
#93C783
accent
#DD4B6E
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9837B7

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

Preview Lab → · Contrast checker → · Palette generator →

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