#9836DB#9836DB

#9836DB is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.5% C 0.237 H 307.2°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#9836DB
RGBrgb(152, 54, 219)
HSLhsl(276, 70%, 54%)
HSVhsv(276, 75%, 86%)
CMYKcmyk(30.6%, 75.3%, 0%, 14.1%)
CIE-LABlab(44.84, 66.65, -66.36)
CIE-LCHlch(44.84, 94.05, 315.12°)
OKLaboklab(55.45% 0.143 -0.1886)
OKLCHoklch(55.45% 0.237 307.2)
XYZxyz(27.0515, 14.4285, 68.3640)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836DB #79DB36
analogous
#4536DB #9836DB #DB36CC
triadic
#9836DB #DB9836 #36DB98
tetradic
#9836DB #DB4536 #79DB36 #36CCDB
square
#9836DB #DB4536 #79DB36 #36CCDB
split-complementary
#9836DB #CCDB36 #36DB45
monochromatic
#551780 #7820B4 #9836DB #B36AE4 #CD9EEE

Accessibility & contrast

On white

5.40
#9836DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#9836DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9836DB
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836DB#FFFFFF#000000##FFFFFF
##9836DB1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E0
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#8D5F87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9836db;
/* rgb */ color: rgb(152, 54, 219);
/* oklch */ color: oklch(55.5% 0.237 307.2);
Tailwind
colors: {
  custom: {
    50: '#bc77e7',
    500: '#9836db',
    950: '#000000',
  },
}
SCSS
$custom: #9836db;
$custom-light: #bc77e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9836db",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 219
  },
  "hsl": {
    "h": 275.636,
    "s": 69.62,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55453,
    "c": 0.23668,
    "h": 307.2
  },
  "luminance": 0.14428
}

Semantic roles & 50–950 ramp

primary
#9836DB
secondary
#B0DA93
accent
#EC3B83
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9836DB

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

Preview Lab → · Contrast checker → · Palette generator →

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