#9836CA#9836CA

#9836CA is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.2% C 0.221 H 311.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#9836CA
RGBrgb(152, 54, 202)
HSLhsl(280, 58%, 50%)
HSVhsv(280, 73%, 79%)
CMYKcmyk(24.8%, 73.3%, 0%, 20.8%)
CIE-LABlab(43.62, 63.05, -58.55)
CIE-LCHlch(43.62, 86.05, 317.12°)
OKLaboklab(54.21% 0.146 -0.1657)
OKLCHoklch(54.21% 0.221 311.4)
XYZxyz(24.9267, 13.5786, 57.1735)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836CA #68CA36
analogous
#4E36CA #9836CA #CA36B2
triadic
#9836CA #CA9836 #36CA98
tetradic
#9836CA #CA4E36 #68CA36 #36B2CA
square
#9836CA #CA4E36 #68CA36 #36B2CA
split-complementary
#9836CA #B2CA36 #36CA4E
monochromatic
#4F1C6A #74299A #9836CA #B166D7 #CA97E4

Accessibility & contrast

On white

5.65
#9836CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#9836CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9836CA
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836CA#FFFFFF#000000##FFFFFF
##9836CA1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#1D69C7
Tritanopia (blue-blind)
#92587D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9836ca;
/* rgb */ color: rgb(152, 54, 202);
/* oklch */ color: oklch(54.2% 0.221 311.4);
Tailwind
colors: {
  custom: {
    50: '#bb76db',
    500: '#9836ca',
    950: '#000000',
  },
}
SCSS
$custom: #9836ca;
$custom-light: #bb76db;
$custom-dark: #000000;
JSON
{
  "hex": "#9836ca",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 202
  },
  "hsl": {
    "h": 279.73,
    "s": 58.268,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54209,
    "c": 0.22085,
    "h": 311.4
  },
  "luminance": 0.13578
}

Semantic roles & 50–950 ramp

primary
#9836CA
secondary
#A3CF8D
accent
#E1467B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9836CA

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

Preview Lab → · Contrast checker → · Palette generator →

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