#9836CC#9836CC

#9836CC is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.4% C 0.223 H 310.9°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#9836CC
RGBrgb(152, 54, 204)
HSLhsl(279, 60%, 51%)
HSVhsv(279, 74%, 80%)
CMYKcmyk(25.5%, 73.5%, 0%, 20%)
CIE-LABlab(43.76, 63.47, -59.49)
CIE-LCHlch(43.76, 86.99, 316.86°)
OKLaboklab(54.35% 0.1457 -0.1684)
OKLCHoklch(54.35% 0.223 310.9)
XYZxyz(25.1651, 13.6740, 58.4287)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836CC #6ACC36
analogous
#4D36CC #9836CC #CC36B5
triadic
#9836CC #CC9836 #36CC98
tetradic
#9836CC #CC4D36 #6ACC36 #36B5CC
square
#9836CC #CC4D36 #6ACC36 #36B5CC
split-complementary
#9836CC #B5CC36 #36CC4D
monochromatic
#501B6C #74289D #9836CC #B167D8 #CA98E5

Accessibility & contrast

On white

5.62
#9836CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9836CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9836CC
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836CC#FFFFFF#000000##FFFFFF
##9836CC1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#1969C9
Tritanopia (blue-blind)
#91597F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9836cc;
/* rgb */ color: rgb(152, 54, 204);
/* oklch */ color: oklch(54.4% 0.223 310.9);
Tailwind
colors: {
  custom: {
    50: '#bb76dc',
    500: '#9836cc',
    950: '#000000',
  },
}
SCSS
$custom: #9836cc;
$custom-light: #bb76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9836cc",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 204
  },
  "hsl": {
    "h": 279.2,
    "s": 59.524,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54352,
    "c": 0.22271,
    "h": 310.9
  },
  "luminance": 0.13673
}

Semantic roles & 50–950 ramp

primary
#9836CC
secondary
#A5D08E
accent
#E3457C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9836CC

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

Preview Lab → · Contrast checker → · Palette generator →

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