#9837B2#9837B2

#9837B2 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.7% C 0.198 H 318.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9837B2
RGBrgb(152, 55, 178)
HSLhsl(287, 53%, 46%)
HSVhsv(287, 69%, 70%)
CMYKcmyk(14.6%, 69.1%, 0%, 30.2%)
CIE-LABlab(42.19, 57.80, -46.83)
CIE-LCHlch(42.19, 74.39, 320.99°)
OKLaboklab(52.69% 0.1475 -0.1313)
OKLCHoklch(52.69% 0.198 318.3)
XYZxyz(22.3499, 12.6231, 43.3701)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837B2 #51B237
analogous
#5A37B2 #9837B2 #B2378E
triadic
#9837B2 #B29837 #37B298
tetradic
#9837B2 #B25A37 #51B237 #378EB2
square
#9837B2 #B25A37 #51B237 #378EB2
split-complementary
#9837B2 #8EB237 #37B25A
monochromatic
#481A54 #702983 #9837B2 #B45ACC #C989DB

Accessibility & contrast

On white

5.96
#9837B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9837B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837B2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837B2#FFFFFF#000000##FFFFFF
##9837B21.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#3D67AF
Tritanopia (blue-blind)
#974E70
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9837b2;
/* rgb */ color: rgb(152, 55, 178);
/* oklch */ color: oklch(52.7% 0.198 318.3);
Tailwind
colors: {
  custom: {
    50: '#ba76ca',
    500: '#9837b2',
    950: '#000000',
  },
}
SCSS
$custom: #9837b2;
$custom-light: #ba76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9837b2",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 287.317,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.52688,
    "c": 0.1975,
    "h": 318.3
  },
  "luminance": 0.12622
}

Semantic roles & 50–950 ramp

primary
#9837B2
secondary
#8FC580
accent
#DC4C6A
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9837B2

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

Preview Lab → · Contrast checker → · Palette generator →

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