#9836D3#9836D3

#9836D3 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.9% C 0.229 H 309.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#9836D3
RGBrgb(152, 54, 211)
HSLhsl(277, 64%, 52%)
HSVhsv(277, 74%, 83%)
CMYKcmyk(28%, 74.4%, 0%, 17.3%)
CIE-LABlab(44.26, 64.94, -62.72)
CIE-LCHlch(44.26, 90.28, 316.00°)
OKLaboklab(54.86% 0.1445 -0.1779)
OKLCHoklch(54.86% 0.229 309.1)
XYZxyz(26.0235, 14.0174, 62.9501)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836D3 #71D336
analogous
#4936D3 #9836D3 #D336C0
triadic
#9836D3 #D39836 #36D398
tetradic
#9836D3 #D34936 #71D336 #36C0D3
square
#9836D3 #D34936 #71D336 #36C0D3
split-complementary
#9836D3 #C0D336 #36D349
monochromatic
#531A75 #7625A7 #9836D3 #B268DE #CB9AE9

Accessibility & contrast

On white

5.52
#9836D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#9836D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9836D3
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836D3#FFFFFF#000000##FFFFFF
##9836D31.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D7
Deuteranopia (green-blind)
#006AD0
Tritanopia (blue-blind)
#8F5C82
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9836d3;
/* rgb */ color: rgb(152, 54, 211);
/* oklch */ color: oklch(54.9% 0.229 309.1);
Tailwind
colors: {
  custom: {
    50: '#bc77e1',
    500: '#9836d3',
    950: '#000000',
  },
}
SCSS
$custom: #9836d3;
$custom-light: #bc77e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9836d3",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 211
  },
  "hsl": {
    "h": 277.452,
    "s": 64.082,
    "l": 51.961
  },
  "oklch": {
    "l": 0.54859,
    "c": 0.22922,
    "h": 309.1
  },
  "luminance": 0.14017
}

Semantic roles & 50–950 ramp

primary
#9836D3
secondary
#AAD590
accent
#E7417F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9836D3

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

Preview Lab → · Contrast checker → · Palette generator →

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