#9828A2#9828A2

#9828A2 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.3% C 0.201 H 324.4°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#9828A2
RGBrgb(152, 40, 162)
HSLhsl(295, 60%, 40%)
HSVhsv(295, 75%, 64%)
CMYKcmyk(6.2%, 75.3%, 0%, 36.5%)
CIE-LABlab(39.25, 60.39, -42.01)
CIE-LCHlch(39.25, 73.56, 325.18°)
OKLaboklab(50.27% 0.1634 -0.1171)
OKLCHoklch(50.27% 0.201 324.4)
XYZxyz(20.2287, 10.8029, 35.1951)
Luminance0.1080 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828A2 #32A228
analogous
#5B28A2 #9828A2 #A2286F
triadic
#9828A2 #A29828 #28A298
tetradic
#9828A2 #A25B28 #32A228 #286FA2
square
#9828A2 #A25B28 #32A228 #286FA2
split-complementary
#9828A2 #6FA228 #28A25B
monochromatic
#3C1040 #6A1C71 #9828A2 #C239CE #D16ADA

Accessibility & contrast

On white

6.64
#9828A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9828A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9828A2
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828A2#FFFFFF#000000##FFFFFF
##9828A21.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#40619F
Tritanopia (blue-blind)
#9B3E63
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9828a2;
/* rgb */ color: rgb(152, 40, 162);
/* oklch */ color: oklch(50.3% 0.201 324.4);
Tailwind
colors: {
  custom: {
    50: '#ba6ebe',
    500: '#9828a2',
    950: '#000000',
  },
}
SCSS
$custom: #9828a2;
$custom-light: #ba6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#9828a2",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 295.082,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50272,
    "c": 0.20103,
    "h": 324.4
  },
  "luminance": 0.10802
}

Semantic roles & 50–950 ramp

primary
#9828A2
secondary
#6DC165
accent
#E44451
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9828A2

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

Preview Lab → · Contrast checker → · Palette generator →

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