#9827BB#9827BB

#9827BB is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.9% C 0.223 H 316.4°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9827BB
RGBrgb(152, 39, 187)
HSLhsl(286, 65%, 44%)
HSVhsv(286, 79%, 73%)
CMYKcmyk(18.7%, 79.1%, 0%, 26.7%)
CIE-LABlab(40.76, 65.30, -54.43)
CIE-LCHlch(40.76, 85.01, 320.19°)
OKLaboklab(51.86% 0.1614 -0.1535)
OKLCHoklch(51.86% 0.223 316.4)
XYZxyz(22.6427, 11.7152, 48.0726)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9827BB #4ABB27
analogous
#4E27BB #9827BB #BB2794
triadic
#9827BB #BB9827 #27BB98
tetradic
#9827BB #BB4E27 #4ABB27 #2794BB
square
#9827BB #BB4E27 #4ABB27 #2794BB
split-complementary
#9827BB #94BB27 #27BB4E
monochromatic
#461256 #6F1C88 #9827BB #B647D9 #CA79E3

Accessibility & contrast

On white

6.28
#9827BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9827BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9827BB
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9827BB#FFFFFF#000000##FFFFFF
##9827BB1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#2663B8
Tritanopia (blue-blind)
#964A71
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9827bb;
/* rgb */ color: rgb(152, 39, 187);
/* oklch */ color: oklch(51.9% 0.223 316.4);
Tailwind
colors: {
  custom: {
    50: '#bb6fd0',
    500: '#9827bb',
    950: '#000000',
  },
}
SCSS
$custom: #9827bb;
$custom-light: #bb6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#9827bb",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 285.811,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5186,
    "c": 0.22274,
    "h": 316.4
  },
  "luminance": 0.11714
}

Semantic roles & 50–950 ramp

primary
#9827BB
secondary
#88CB73
accent
#E83F67
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9827BB

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

Preview Lab → · Contrast checker → · Palette generator →

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