#9836CD#9836CD

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

Color values

HEX#9836CD
RGBrgb(152, 54, 205)
HSLhsl(279, 60%, 51%)
HSVhsv(279, 74%, 80%)
CMYKcmyk(25.9%, 73.7%, 0%, 19.6%)
CIE-LABlab(43.83, 63.68, -59.95)
CIE-LCHlch(43.83, 87.46, 316.73°)
OKLaboklab(54.42% 0.1456 -0.1698)
OKLCHoklch(54.42% 0.224 310.6)
XYZxyz(25.2854, 13.7221, 59.0624)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836CD #6BCD36
analogous
#4C36CD #9836CD #CD36B7
triadic
#9836CD #CD9836 #36CD98
tetradic
#9836CD #CD4C36 #6BCD36 #36B7CD
square
#9836CD #CD4C36 #6BCD36 #36B7CD
split-complementary
#9836CD #B7CD36 #36CD4C
monochromatic
#511B6D #75279E #9836CD #B167D9 #CA98E5

Accessibility & contrast

On white

5.61
#9836CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#9836CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9836CD
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836CD#FFFFFF#000000##FFFFFF
##9836CD1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#1669CA
Tritanopia (blue-blind)
#91597F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9836cd;
/* rgb */ color: rgb(152, 54, 205);
/* oklch */ color: oklch(54.4% 0.224 310.6);
Tailwind
colors: {
  custom: {
    50: '#bb77dd',
    500: '#9836cd',
    950: '#000000',
  },
}
SCSS
$custom: #9836cd;
$custom-light: #bb77dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9836cd",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 205
  },
  "hsl": {
    "h": 278.94,
    "s": 60.159,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54423,
    "c": 0.22364,
    "h": 310.6
  },
  "luminance": 0.13722
}

Semantic roles & 50–950 ramp

primary
#9836CD
secondary
#A5D18E
accent
#E3447C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9836CD

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

Preview Lab → · Contrast checker → · Palette generator →

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