#9827BA#9827BA

#9827BA is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.8% C 0.222 H 316.7°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9827BA
RGBrgb(152, 39, 186)
HSLhsl(286, 65%, 44%)
HSVhsv(286, 79%, 73%)
CMYKcmyk(18.3%, 79%, 0%, 27.1%)
CIE-LABlab(40.69, 65.11, -53.95)
CIE-LCHlch(40.69, 84.56, 320.35°)
OKLaboklab(51.79% 0.1616 -0.1521)
OKLCHoklch(51.79% 0.222 316.7)
XYZxyz(22.5360, 11.6726, 47.5108)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9827BA #49BA27
analogous
#4E27BA #9827BA #BA2793
triadic
#9827BA #BA9827 #27BA98
tetradic
#9827BA #BA4E27 #49BA27 #2793BA
square
#9827BA #BA4E27 #49BA27 #2793BA
split-complementary
#9827BA #93BA27 #27BA4E
monochromatic
#451255 #6F1C87 #9827BA #B646D8 #CA79E3

Accessibility & contrast

On white

6.30
#9827BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#9827BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9827BA
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9827BA#FFFFFF#000000##FFFFFF
##9827BA1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#2863B7
Tritanopia (blue-blind)
#964971
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9827ba;
/* rgb */ color: rgb(152, 39, 186);
/* oklch */ color: oklch(51.8% 0.222 316.7);
Tailwind
colors: {
  custom: {
    50: '#bb6fcf',
    500: '#9827ba',
    950: '#000000',
  },
}
SCSS
$custom: #9827ba;
$custom-light: #bb6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9827ba",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 286.122,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5179,
    "c": 0.22189,
    "h": 316.7
  },
  "luminance": 0.11672
}

Semantic roles & 50–950 ramp

primary
#9827BA
secondary
#87CB72
accent
#E84067
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9827BA

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

Preview Lab → · Contrast checker → · Palette generator →

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