#9837C2#9837C2

#9837C2 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.7% C 0.212 H 313.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#9837C2
RGBrgb(152, 55, 194)
HSLhsl(282, 56%, 49%)
HSVhsv(282, 72%, 76%)
CMYKcmyk(21.6%, 71.6%, 0%, 23.9%)
CIE-LABlab(43.22, 61.01, -54.56)
CIE-LCHlch(43.22, 81.85, 318.19°)
OKLaboklab(53.75% 0.1461 -0.154)
OKLCHoklch(53.75% 0.212 313.5)
XYZxyz(24.0510, 13.3036, 52.3294)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837C2 #61C237
analogous
#5337C2 #9837C2 #C237A7
triadic
#9837C2 #C29837 #37C298
tetradic
#9837C2 #C25337 #61C237 #37A7C2
square
#9837C2 #C25337 #61C237 #37A7C2
split-complementary
#9837C2 #A7C237 #37C253
monochromatic
#4D1C63 #732992 #9837C2 #B163D3 #C993E0

Accessibility & contrast

On white

5.74
#9837C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9837C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837C2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837C2#FFFFFF#000000##FFFFFF
##9837C21.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#2C68BF
Tritanopia (blue-blind)
#945579
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9837c2;
/* rgb */ color: rgb(152, 55, 194);
/* oklch */ color: oklch(53.7% 0.212 313.5);
Tailwind
colors: {
  custom: {
    50: '#bb77d5',
    500: '#9837c2',
    950: '#000000',
  },
}
SCSS
$custom: #9837c2;
$custom-light: #bb77d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9837c2",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 281.871,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.53749,
    "c": 0.21228,
    "h": 313.5
  },
  "luminance": 0.13303
}

Semantic roles & 50–950 ramp

primary
#9837C2
secondary
#9DCB89
accent
#DF4976
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9837C2

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

Preview Lab → · Contrast checker → · Palette generator →

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