#9837BB#9837BB

#9837BB is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.3% C 0.206 H 315.5°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#9837BB
RGBrgb(152, 55, 187)
HSLhsl(284, 55%, 47%)
HSVhsv(284, 71%, 73%)
CMYKcmyk(18.7%, 70.6%, 0%, 26.7%)
CIE-LABlab(42.76, 59.58, -51.21)
CIE-LCHlch(42.76, 78.57, 319.32°)
OKLaboklab(53.28% 0.1469 -0.1441)
OKLCHoklch(53.28% 0.206 315.5)
XYZxyz(23.2833, 12.9965, 48.2862)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837BB #5ABB37
analogous
#5637BB #9837BB #BB379C
triadic
#9837BB #BB9837 #37BB98
tetradic
#9837BB #BB5637 #5ABB37 #379CBB
square
#9837BB #BB5637 #5ABB37 #379CBB
split-complementary
#9837BB #9CBB37 #37BB56
monochromatic
#4B1B5C #72298C #9837BB #B25FD0 #C98EDE

Accessibility & contrast

On white

5.83
#9837BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#9837BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837BB
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837BB#FFFFFF#000000##FFFFFF
##9837BB1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#3468B8
Tritanopia (blue-blind)
#955275
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9837bb;
/* rgb */ color: rgb(152, 55, 187);
/* oklch */ color: oklch(53.3% 0.206 315.5);
Tailwind
colors: {
  custom: {
    50: '#ba76d0',
    500: '#9837bb',
    950: '#000000',
  },
}
SCSS
$custom: #9837bb;
$custom-light: #ba76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9837bb",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 187
  },
  "hsl": {
    "h": 284.091,
    "s": 54.545,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53276,
    "c": 0.20579,
    "h": 315.5
  },
  "luminance": 0.12996
}

Semantic roles & 50–950 ramp

primary
#9837BB
secondary
#97C985
accent
#DE4A71
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9837BB

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

Preview Lab → · Contrast checker → · Palette generator →

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