#9828AC#9828AC

#9828AC is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 50.9% C 0.209 H 321.0°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#9828AC
RGBrgb(152, 40, 172)
HSLhsl(291, 62%, 42%)
HSVhsv(291, 77%, 67%)
CMYKcmyk(11.6%, 76.7%, 0%, 32.5%)
CIE-LABlab(39.87, 62.19, -46.99)
CIE-LCHlch(39.87, 77.94, 322.92°)
OKLaboklab(50.91% 0.1626 -0.1317)
OKLCHoklch(50.91% 0.209 321)
XYZxyz(21.1532, 11.1727, 40.0641)
Luminance0.1117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828AC #3CAC28
analogous
#5628AC #9828AC #AC287E
triadic
#9828AC #AC9828 #28AC98
tetradic
#9828AC #AC5628 #3CAC28 #287EAC
square
#9828AC #AC5628 #3CAC28 #287EAC
split-complementary
#9828AC #7EAC28 #28AC56
monochromatic
#401149 #6C1C7A #9828AC #BC3FD2 #CD71DE

Accessibility & contrast

On white

6.49
#9828AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9828AC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828AC#FFFFFF#000000##FFFFFF
##9828AC1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B0
Deuteranopia (green-blind)
#3862A9
Tritanopia (blue-blind)
#994369
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9828ac;
/* rgb */ color: rgb(152, 40, 172);
/* oklch */ color: oklch(50.9% 0.209 321.0);
Tailwind
colors: {
  custom: {
    50: '#ba6fc5',
    500: '#9828ac',
    950: '#000000',
  },
}
SCSS
$custom: #9828ac;
$custom-light: #ba6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#9828ac",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 290.909,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50914,
    "c": 0.20924,
    "h": 321
  },
  "luminance": 0.11172
}

Semantic roles & 50–950 ramp

primary
#9828AC
secondary
#79C56B
accent
#E5425B
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9828AC

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

Preview Lab → · Contrast checker → · Palette generator →

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