#9837D7#9837D7

#9837D7 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 55.2% C 0.232 H 308.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#9837D7
RGBrgb(152, 55, 215)
HSLhsl(276, 67%, 53%)
HSVhsv(276, 74%, 84%)
CMYKcmyk(29.3%, 74.4%, 0%, 15.7%)
CIE-LABlab(44.68, 65.41, -64.33)
CIE-LCHlch(44.68, 91.74, 315.48°)
OKLaboklab(55.25% 0.1429 -0.1827)
OKLCHoklch(55.25% 0.232 308)
XYZxyz(26.5783, 14.3145, 65.6396)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837D7 #76D737
analogous
#4837D7 #9837D7 #D737C6
triadic
#9837D7 #D79837 #37D798
tetradic
#9837D7 #D74837 #76D737 #37C6D7
square
#9837D7 #D74837 #76D737 #37C6D7
split-complementary
#9837D7 #C6D737 #37D748
monochromatic
#54197B #7723AE #9837D7 #B26AE1 #CD9DEB

Accessibility & contrast

On white

5.44
#9837D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#9837D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837D7
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837D7#FFFFFF#000000##FFFFFF
##9837D71.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#8E5E85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9837d7;
/* rgb */ color: rgb(152, 55, 215);
/* oklch */ color: oklch(55.2% 0.232 308.0);
Tailwind
colors: {
  custom: {
    50: '#bc77e4',
    500: '#9837d7',
    950: '#000000',
  },
}
SCSS
$custom: #9837d7;
$custom-light: #bc77e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9837d7",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 215
  },
  "hsl": {
    "h": 276.375,
    "s": 66.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55248,
    "c": 0.23191,
    "h": 308
  },
  "luminance": 0.14314
}

Semantic roles & 50–950 ramp

primary
#9837D7
secondary
#AED792
accent
#EA3E82
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9837D7

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

Preview Lab → · Contrast checker → · Palette generator →

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