#9827B6#9827B6

#9827B6 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.5% C 0.219 H 317.9°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9827B6
RGBrgb(152, 39, 182)
HSLhsl(287, 65%, 43%)
HSVhsv(287, 79%, 71%)
CMYKcmyk(16.5%, 78.6%, 0%, 28.6%)
CIE-LABlab(40.42, 64.36, -52.04)
CIE-LCHlch(40.42, 82.76, 321.04°)
OKLaboklab(51.51% 0.1622 -0.1465)
OKLCHoklch(51.51% 0.219 317.9)
XYZxyz(22.1167, 11.5049, 45.3026)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9827B6 #45B627
analogous
#5127B6 #9827B6 #B6278C
triadic
#9827B6 #B69827 #27B698
tetradic
#9827B6 #B65127 #45B627 #278CB6
square
#9827B6 #B65127 #45B627 #278CB6
split-complementary
#9827B6 #8CB627 #27B651
monochromatic
#441151 #6E1C84 #9827B6 #B843D7 #CB76E2

Accessibility & contrast

On white

6.36
#9827B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#9827B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9827B6
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9827B6#FFFFFF#000000##FFFFFF
##9827B61.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BA
Deuteranopia (green-blind)
#2D63B3
Tritanopia (blue-blind)
#97476F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9827b6;
/* rgb */ color: rgb(152, 39, 182);
/* oklch */ color: oklch(51.5% 0.219 317.9);
Tailwind
colors: {
  custom: {
    50: '#bb6fcd',
    500: '#9827b6',
    950: '#000000',
  },
}
SCSS
$custom: #9827b6;
$custom-light: #bb6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#9827b6",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 182
  },
  "hsl": {
    "h": 287.413,
    "s": 64.706,
    "l": 43.333
  },
  "oklch": {
    "l": 0.51511,
    "c": 0.21855,
    "h": 317.9
  },
  "luminance": 0.11504
}

Semantic roles & 50–950 ramp

primary
#9827B6
secondary
#82C970
accent
#E84063
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #9827B6

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

Preview Lab → · Contrast checker → · Palette generator →

#9827B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva