#9828AB#9828AB

#9828AB is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.8% C 0.208 H 321.3°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#9828AB
RGBrgb(152, 40, 171)
HSLhsl(291, 62%, 41%)
HSVhsv(291, 77%, 67%)
CMYKcmyk(11.1%, 76.6%, 0%, 32.9%)
CIE-LABlab(39.81, 62.00, -46.50)
CIE-LCHlch(39.81, 77.50, 323.13°)
OKLaboklab(50.85% 0.1627 -0.1302)
OKLCHoklch(50.85% 0.208 321.3)
XYZxyz(21.0575, 11.1344, 39.5602)
Luminance0.1113 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828AB #3BAB28
analogous
#5728AB #9828AB #AB287D
triadic
#9828AB #AB9828 #28AB98
tetradic
#9828AB #AB5728 #3BAB28 #287DAB
square
#9828AB #AB5728 #3BAB28 #287DAB
split-complementary
#9828AB #7DAB28 #28AB57
monochromatic
#401148 #6C1C79 #9828AB #BD3ED2 #CE70DE

Accessibility & contrast

On white

6.51
#9828AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#9828AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9828AB
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828AB#FFFFFF#000000##FFFFFF
##9828AB1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#3962A8
Tritanopia (blue-blind)
#994269
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9828ab;
/* rgb */ color: rgb(152, 40, 171);
/* oklch */ color: oklch(50.8% 0.208 321.3);
Tailwind
colors: {
  custom: {
    50: '#ba6fc5',
    500: '#9828ab',
    950: '#000000',
  },
}
SCSS
$custom: #9828ab;
$custom-light: #ba6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#9828ab",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 291.298,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50848,
    "c": 0.20842,
    "h": 321.3
  },
  "luminance": 0.11133
}

Semantic roles & 50–950 ramp

primary
#9828AB
secondary
#77C46A
accent
#E5435A
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9828AB

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

Preview Lab → · Contrast checker → · Palette generator →

#9828AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva