#9836D1#9836D1

#9836D1 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.7% C 0.227 H 309.6°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9836D1
RGBrgb(152, 54, 209)
HSLhsl(278, 63%, 52%)
HSVhsv(278, 74%, 82%)
CMYKcmyk(27.3%, 74.2%, 0%, 18%)
CIE-LABlab(44.11, 64.52, -61.80)
CIE-LCHlch(44.11, 89.34, 316.23°)
OKLaboklab(54.71% 0.1449 -0.1752)
OKLCHoklch(54.71% 0.227 309.6)
XYZxyz(25.7744, 13.9177, 61.6378)
Luminance0.1392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836D1 #6FD136
analogous
#4B36D1 #9836D1 #D136BD
triadic
#9836D1 #D19836 #36D198
tetradic
#9836D1 #D14B36 #6FD136 #36BDD1
square
#9836D1 #D14B36 #6FD136 #36BDD1
split-complementary
#9836D1 #BDD136 #36D14B
monochromatic
#521A72 #7626A4 #9836D1 #B268DC #CB9AE8

Accessibility & contrast

On white

5.55
#9836D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#9836D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9836D1
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836D1#FFFFFF#000000##FFFFFF
##9836D11.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#066ACE
Tritanopia (blue-blind)
#905B81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9836d1;
/* rgb */ color: rgb(152, 54, 209);
/* oklch */ color: oklch(54.7% 0.227 309.6);
Tailwind
colors: {
  custom: {
    50: '#bb77e0',
    500: '#9836d1',
    950: '#000000',
  },
}
SCSS
$custom: #9836d1;
$custom-light: #bb77e0;
$custom-dark: #000000;
JSON
{
  "hex": "#9836d1",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 209
  },
  "hsl": {
    "h": 277.935,
    "s": 62.753,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54712,
    "c": 0.22736,
    "h": 309.6
  },
  "luminance": 0.13917
}

Semantic roles & 50–950 ramp

primary
#9836D1
secondary
#A8D38F
accent
#E6427E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9836D1

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

Preview Lab → · Contrast checker → · Palette generator →

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