#9827BC#9827BC

#9827BC is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.9% C 0.224 H 316.2°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9827BC
RGBrgb(152, 39, 188)
HSLhsl(286, 66%, 45%)
HSVhsv(286, 79%, 74%)
CMYKcmyk(19.1%, 79.3%, 0%, 26.3%)
CIE-LABlab(40.83, 65.49, -54.91)
CIE-LCHlch(40.83, 85.46, 320.02°)
OKLaboklab(51.93% 0.1613 -0.1549)
OKLCHoklch(51.93% 0.224 316.2)
XYZxyz(22.7501, 11.7582, 48.6384)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9827BC #4BBC27
analogous
#4D27BC #9827BC #BC2796
triadic
#9827BC #BC9827 #27BC98
tetradic
#9827BC #BC4D27 #4BBC27 #2796BC
square
#9827BC #BC4D27 #4BBC27 #2796BC
split-complementary
#9827BC #96BC27 #27BC4D
monochromatic
#461257 #6F1C89 #9827BC #B647D9 #CA7AE3

Accessibility & contrast

On white

6.27
#9827BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9827BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9827BC
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9827BC#FFFFFF#000000##FFFFFF
##9827BC1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#2563B9
Tritanopia (blue-blind)
#954A72
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9827bc;
/* rgb */ color: rgb(152, 39, 188);
/* oklch */ color: oklch(51.9% 0.224 316.2);
Tailwind
colors: {
  custom: {
    50: '#bb6fd1',
    500: '#9827bc',
    950: '#000000',
  },
}
SCSS
$custom: #9827bc;
$custom-light: #bb6fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9827bc",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 188
  },
  "hsl": {
    "h": 285.503,
    "s": 65.639,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51931,
    "c": 0.22358,
    "h": 316.2
  },
  "luminance": 0.11757
}

Semantic roles & 50–950 ramp

primary
#9827BC
secondary
#89CB73
accent
#E93F68
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9827BC

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

Preview Lab → · Contrast checker → · Palette generator →

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