#9828A5#9828A5

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

Color values

HEX#9828A5
RGBrgb(152, 40, 165)
HSLhsl(294, 61%, 40%)
HSVhsv(294, 76%, 65%)
CMYKcmyk(7.9%, 75.8%, 0%, 35.3%)
CIE-LABlab(39.43, 60.92, -43.51)
CIE-LCHlch(39.43, 74.87, 324.47°)
OKLaboklab(50.46% 0.1632 -0.1215)
OKLCHoklch(50.46% 0.203 323.3)
XYZxyz(20.4986, 10.9108, 36.6163)
Luminance0.1091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828A5 #35A528
analogous
#5928A5 #9828A5 #A52873
triadic
#9828A5 #A59828 #28A598
tetradic
#9828A5 #A55928 #35A528 #2873A5
square
#9828A5 #A55928 #35A528 #2873A5
split-complementary
#9828A5 #73A528 #28A559
monochromatic
#3D1042 #6B1C74 #9828A5 #C03BCF #D06CDB

Accessibility & contrast

On white

6.60
#9828A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9828A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9828A5
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828A5#FFFFFF#000000##FFFFFF
##9828A51.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#3E61A2
Tritanopia (blue-blind)
#9A4065
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9828a5;
/* rgb */ color: rgb(152, 40, 165);
/* oklch */ color: oklch(50.5% 0.203 323.3);
Tailwind
colors: {
  custom: {
    50: '#ba6fc0',
    500: '#9828a5',
    950: '#000000',
  },
}
SCSS
$custom: #9828a5;
$custom-light: #ba6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#9828a5",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 293.76,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50461,
    "c": 0.20348,
    "h": 323.3
  },
  "luminance": 0.1091
}

Semantic roles & 50–950 ramp

primary
#9828A5
secondary
#70C267
accent
#E44454
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9828A5

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

Preview Lab → · Contrast checker → · Palette generator →

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