#9836D7#9836D7

#9836D7 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 55.2% C 0.233 H 308.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9836D7
RGBrgb(152, 54, 215)
HSLhsl(277, 67%, 53%)
HSVhsv(277, 75%, 84%)
CMYKcmyk(29.3%, 74.9%, 0%, 15.7%)
CIE-LABlab(44.55, 65.79, -64.55)
CIE-LCHlch(44.55, 92.17, 315.55°)
OKLaboklab(55.15% 0.1438 -0.1833)
OKLCHoklch(55.15% 0.233 308.1)
XYZxyz(26.5312, 14.2204, 65.6240)
Luminance0.1422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836D7 #75D736
analogous
#4836D7 #9836D7 #D736C5
triadic
#9836D7 #D79836 #36D798
tetradic
#9836D7 #D74836 #75D736 #36C5D7
square
#9836D7 #D74836 #75D736 #36C5D7
split-complementary
#9836D7 #C5D736 #36D748
monochromatic
#54187A #7722AD #9836D7 #B269E1 #CC9CEB

Accessibility & contrast

On white

5.46
#9836D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9836D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9836D7
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836D7#FFFFFF#000000##FFFFFF
##9836D71.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DB
Deuteranopia (green-blind)
#006AD4
Tritanopia (blue-blind)
#8E5D85
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9836d7;
/* rgb */ color: rgb(152, 54, 215);
/* oklch */ color: oklch(55.2% 0.233 308.1);
Tailwind
colors: {
  custom: {
    50: '#bc77e4',
    500: '#9836d7',
    950: '#000000',
  },
}
SCSS
$custom: #9836d7;
$custom-light: #bc77e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9836d7",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 215
  },
  "hsl": {
    "h": 276.522,
    "s": 66.805,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55154,
    "c": 0.23295,
    "h": 308.1
  },
  "luminance": 0.1422
}

Semantic roles & 50–950 ramp

primary
#9836D7
secondary
#ADD792
accent
#EA3E81
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9836D7

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

Preview Lab → · Contrast checker → · Palette generator →

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