#9837C3#9837C3

#9837C3 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.8% C 0.213 H 313.2°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#9837C3
RGBrgb(152, 55, 195)
HSLhsl(282, 56%, 49%)
HSVhsv(282, 72%, 76%)
CMYKcmyk(22.1%, 71.8%, 0%, 23.5%)
CIE-LABlab(43.28, 61.21, -55.04)
CIE-LCHlch(43.28, 82.32, 318.04°)
OKLaboklab(53.82% 0.146 -0.1554)
OKLCHoklch(53.82% 0.213 313.2)
XYZxyz(24.1637, 13.3486, 52.9228)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837C3 #62C337
analogous
#5237C3 #9837C3 #C337A8
triadic
#9837C3 #C39837 #37C398
tetradic
#9837C3 #C35237 #62C337 #37A8C3
square
#9837C3 #C35237 #62C337 #37A8C3
split-complementary
#9837C3 #A8C337 #37C352
monochromatic
#4E1C64 #732A93 #9837C3 #B164D3 #C994E1

Accessibility & contrast

On white

5.72
#9837C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#9837C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837C3
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837C3#FFFFFF#000000##FFFFFF
##9837C31.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C7
Deuteranopia (green-blind)
#2B68C0
Tritanopia (blue-blind)
#93557A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9837c3;
/* rgb */ color: rgb(152, 55, 195);
/* oklch */ color: oklch(53.8% 0.213 313.2);
Tailwind
colors: {
  custom: {
    50: '#bb77d6',
    500: '#9837c3',
    950: '#000000',
  },
}
SCSS
$custom: #9837c3;
$custom-light: #bb77d6;
$custom-dark: #000000;
JSON
{
  "hex": "#9837c3",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 195
  },
  "hsl": {
    "h": 281.571,
    "s": 56,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53818,
    "c": 0.21322,
    "h": 313.2
  },
  "luminance": 0.13348
}

Semantic roles & 50–950 ramp

primary
#9837C3
secondary
#9ECC8A
accent
#DF4977
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9837C3

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

Preview Lab → · Contrast checker → · Palette generator →

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