#9827BD#9827BD

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

Color values

HEX#9827BD
RGBrgb(152, 39, 189)
HSLhsl(285, 66%, 45%)
HSVhsv(285, 79%, 74%)
CMYKcmyk(19.6%, 79.4%, 0%, 25.9%)
CIE-LABlab(40.90, 65.68, -55.38)
CIE-LCHlch(40.90, 85.91, 319.86°)
OKLaboklab(52% 0.1611 -0.1563)
OKLCHoklch(52% 0.224 315.9)
XYZxyz(22.8583, 11.8015, 49.2081)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9827BD #4CBD27
analogous
#4D27BD #9827BD #BD2797
triadic
#9827BD #BD9827 #27BD98
tetradic
#9827BD #BD4D27 #4CBD27 #2797BD
square
#9827BD #BD4D27 #4CBD27 #2797BD
split-complementary
#9827BD #97BD27 #27BD4D
monochromatic
#461258 #6F1D8A #9827BD #B548D9 #CA7BE4

Accessibility & contrast

On white

6.25
#9827BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#9827BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9827BD
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9827BD#FFFFFF#000000##FFFFFF
##9827BD1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#2363BA
Tritanopia (blue-blind)
#954A73
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9827bd;
/* rgb */ color: rgb(152, 39, 189);
/* oklch */ color: oklch(52.0% 0.224 315.9);
Tailwind
colors: {
  custom: {
    50: '#bb6fd2',
    500: '#9827bd',
    950: '#000000',
  },
}
SCSS
$custom: #9827bd;
$custom-light: #bb6fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9827bd",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 285.2,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52002,
    "c": 0.22442,
    "h": 315.9
  },
  "luminance": 0.11801
}

Semantic roles & 50–950 ramp

primary
#9827BD
secondary
#8ACC74
accent
#E93F69
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #9827BD

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

Preview Lab → · Contrast checker → · Palette generator →

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