#9828A3#9828A3

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

Color values

HEX#9828A3
RGBrgb(152, 40, 163)
HSLhsl(295, 61%, 40%)
HSVhsv(295, 75%, 64%)
CMYKcmyk(6.7%, 75.5%, 0%, 36.1%)
CIE-LABlab(39.31, 60.57, -42.51)
CIE-LCHlch(39.31, 74.00, 324.94°)
OKLaboklab(50.33% 0.1633 -0.1186)
OKLCHoklch(50.33% 0.202 324)
XYZxyz(20.3180, 10.8386, 35.6651)
Luminance0.1084 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828A3 #33A328
analogous
#5A28A3 #9828A3 #A32871
triadic
#9828A3 #A39828 #28A398
tetradic
#9828A3 #A35A28 #33A328 #2871A3
square
#9828A3 #A35A28 #33A328 #2871A3
split-complementary
#9828A3 #71A328 #28A35A
monochromatic
#3C1041 #6A1C72 #9828A3 #C13ACF #D16BDB

Accessibility & contrast

On white

6.63
#9828A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9828A3
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828A3#FFFFFF#000000##FFFFFF
##9828A31.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A6
Deuteranopia (green-blind)
#3F61A0
Tritanopia (blue-blind)
#9B3F64
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9828a3;
/* rgb */ color: rgb(152, 40, 163);
/* oklch */ color: oklch(50.3% 0.202 324.0);
Tailwind
colors: {
  custom: {
    50: '#ba6ebf',
    500: '#9828a3',
    950: '#000000',
  },
}
SCSS
$custom: #9828a3;
$custom-light: #ba6ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#9828a3",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 294.634,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50334,
    "c": 0.20184,
    "h": 324
  },
  "luminance": 0.10837
}

Semantic roles & 50–950 ramp

primary
#9828A3
secondary
#6EC166
accent
#E44452
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9828A3

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

Preview Lab → · Contrast checker → · Palette generator →

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