#9836CB#9836CB

#9836CB is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.3% C 0.222 H 311.1°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9836CB
RGBrgb(152, 54, 203)
HSLhsl(279, 59%, 50%)
HSVhsv(279, 73%, 80%)
CMYKcmyk(25.1%, 73.4%, 0%, 20.4%)
CIE-LABlab(43.69, 63.26, -59.02)
CIE-LCHlch(43.69, 86.52, 316.99°)
OKLaboklab(54.28% 0.1459 -0.1671)
OKLCHoklch(54.28% 0.222 311.1)
XYZxyz(25.0455, 13.6262, 57.7991)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836CB #69CB36
analogous
#4D36CB #9836CB #CB36B3
triadic
#9836CB #CB9836 #36CB98
tetradic
#9836CB #CB4D36 #69CB36 #36B3CB
square
#9836CB #CB4D36 #69CB36 #36B3CB
split-complementary
#9836CB #B3CB36 #36CB4D
monochromatic
#501C6B #74289C #9836CB #B167D8 #CA97E4

Accessibility & contrast

On white

5.64
#9836CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9836CB
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836CB#FFFFFF#000000##FFFFFF
##9836CB1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#1B69C8
Tritanopia (blue-blind)
#91587E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9836cb;
/* rgb */ color: rgb(152, 54, 203);
/* oklch */ color: oklch(54.3% 0.222 311.1);
Tailwind
colors: {
  custom: {
    50: '#bb76dc',
    500: '#9836cb',
    950: '#000000',
  },
}
SCSS
$custom: #9836cb;
$custom-light: #bb76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9836cb",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 203
  },
  "hsl": {
    "h": 279.463,
    "s": 58.893,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5428,
    "c": 0.22178,
    "h": 311.1
  },
  "luminance": 0.13626
}

Semantic roles & 50–950 ramp

primary
#9836CB
secondary
#A4D08D
accent
#E2467B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9836CB

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

Preview Lab → · Contrast checker → · Palette generator →

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