#9837D6#9837D6

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

Color values

HEX#9837D6
RGBrgb(152, 55, 214)
HSLhsl(277, 66%, 53%)
HSVhsv(277, 74%, 84%)
CMYKcmyk(29%, 74.3%, 0%, 16.1%)
CIE-LABlab(44.61, 65.20, -63.88)
CIE-LCHlch(44.61, 91.27, 315.59°)
OKLaboklab(55.17% 0.1431 -0.1813)
OKLCHoklch(55.17% 0.231 308.3)
XYZxyz(26.4502, 14.2632, 64.9650)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9837D6 #75D637
analogous
#4937D6 #9837D6 #D637C4
triadic
#9837D6 #D69837 #37D698
tetradic
#9837D6 #D64937 #75D637 #37C4D6
square
#9837D6 #D64937 #75D637 #37C4D6
split-complementary
#9837D6 #C4D637 #37D649
monochromatic
#54197A #7723AC #9837D6 #B26AE0 #CC9DEB

Accessibility & contrast

On white

5.45
#9837D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9837D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9837D6
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9837D6#FFFFFF#000000##FFFFFF
##9837D61.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DA
Deuteranopia (green-blind)
#006AD3
Tritanopia (blue-blind)
#8E5D84
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9837d6;
/* rgb */ color: rgb(152, 55, 214);
/* oklch */ color: oklch(55.2% 0.231 308.3);
Tailwind
colors: {
  custom: {
    50: '#bc77e4',
    500: '#9837d6',
    950: '#000000',
  },
}
SCSS
$custom: #9837d6;
$custom-light: #bc77e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9837d6",
  "rgb": {
    "r": 152,
    "g": 55,
    "b": 214
  },
  "hsl": {
    "h": 276.604,
    "s": 65.975,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55174,
    "c": 0.23097,
    "h": 308.3
  },
  "luminance": 0.14263
}

Semantic roles & 50–950 ramp

primary
#9837D6
secondary
#ADD792
accent
#E93F81
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9837D6

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

Preview Lab → · Contrast checker → · Palette generator →

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