#9828A4#9828A4

#9828A4 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.4% C 0.203 H 323.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#9828A4
RGBrgb(152, 40, 164)
HSLhsl(294, 61%, 40%)
HSVhsv(294, 76%, 64%)
CMYKcmyk(7.3%, 75.6%, 0%, 35.7%)
CIE-LABlab(39.37, 60.75, -43.01)
CIE-LCHlch(39.37, 74.43, 324.70°)
OKLaboklab(50.4% 0.1633 -0.12)
OKLCHoklch(50.4% 0.203 323.7)
XYZxyz(20.4079, 10.8746, 36.1388)
Luminance0.1087 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828A4 #34A428
analogous
#5A28A4 #9828A4 #A42872
triadic
#9828A4 #A49828 #28A498
tetradic
#9828A4 #A45A28 #34A428 #2872A4
square
#9828A4 #A45A28 #34A428 #2872A4
split-complementary
#9828A4 #72A428 #28A45A
monochromatic
#3D1042 #6A1C73 #9828A4 #C13ACF #D06BDB

Accessibility & contrast

On white

6.62
#9828A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#9828A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9828A4
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828A4#FFFFFF#000000##FFFFFF
##9828A41.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#3F61A1
Tritanopia (blue-blind)
#9B3F65
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9828a4;
/* rgb */ color: rgb(152, 40, 164);
/* oklch */ color: oklch(50.4% 0.203 323.7);
Tailwind
colors: {
  custom: {
    50: '#ba6fbf',
    500: '#9828a4',
    950: '#000000',
  },
}
SCSS
$custom: #9828a4;
$custom-light: #ba6fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#9828a4",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 294.194,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.50397,
    "c": 0.20266,
    "h": 323.7
  },
  "luminance": 0.10873
}

Semantic roles & 50–950 ramp

primary
#9828A4
secondary
#6FC166
accent
#E44453
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9828A4

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

Preview Lab → · Contrast checker → · Palette generator →

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