#9837C4#9837C4

#9837C4 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.214 H 312.9°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9837C4
RGBrgb(152, 55, 196)
HSLhsl(281, 56%, 49%)
HSVhsv(281, 72%, 77%)
CMYKcmyk(22.4%, 71.9%, 0%, 23.1%)
CIE-LABlab(43.35, 61.42, -55.51)
CIE-LCHlch(43.35, 82.79, 317.89°)
OKLaboklab(53.89% 0.1459 -0.1568)
OKLCHoklch(53.89% 0.214 312.9)
XYZxyz(24.2771, 13.3940, 53.5203)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837C4 #63C437
analogous
#5237C4 #9837C4 #C437A9
triadic
#9837C4 #C49837 #37C498
tetradic
#9837C4 #C45237 #63C437 #37A9C4
square
#9837C4 #C45237 #63C437 #37A9C4
split-complementary
#9837C4 #A9C437 #37C452
monochromatic
#4E1C64 #732A94 #9837C4 #B165D4 #C994E1

Accessibility & contrast

On white

5.71
#9837C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9837C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837C4
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837C4#FFFFFF#000000##FFFFFF
##9837C41.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#2968C1
Tritanopia (blue-blind)
#93567A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9837c4;
/* rgb */ color: rgb(152, 55, 196);
/* oklch */ color: oklch(53.9% 0.214 312.9);
Tailwind
colors: {
  custom: {
    50: '#bb77d7',
    500: '#9837c4',
    950: '#000000',
  },
}
SCSS
$custom: #9837c4;
$custom-light: #bb77d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9837c4",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 196
  },
  "hsl": {
    "h": 281.277,
    "s": 56.175,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53887,
    "c": 0.21414,
    "h": 312.9
  },
  "luminance": 0.13393
}

Semantic roles & 50–950 ramp

primary
#9837C4
secondary
#9FCC8B
accent
#DF4877
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9837C4

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

Preview Lab → · Contrast checker → · Palette generator →

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