#9828BA#9828BA

#9828BA is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.9% C 0.221 H 316.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9828BA
RGBrgb(152, 40, 186)
HSLhsl(286, 65%, 44%)
HSVhsv(286, 78%, 73%)
CMYKcmyk(18.3%, 78.5%, 0%, 27.1%)
CIE-LABlab(40.80, 64.80, -53.78)
CIE-LCHlch(40.80, 84.21, 320.31°)
OKLaboklab(51.87% 0.1608 -0.1516)
OKLCHoklch(51.87% 0.221 316.7)
XYZxyz(22.5693, 11.7391, 47.5219)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828BA #4ABA28
analogous
#4F28BA #9828BA #BA2893
triadic
#9828BA #BA9828 #28BA98
tetradic
#9828BA #BA4F28 #4ABA28 #2893BA
square
#9828BA #BA4F28 #4ABA28 #2893BA
split-complementary
#9828BA #93BA28 #28BA4F
monochromatic
#461255 #6F1D88 #9828BA #B648D8 #CA7AE2

Accessibility & contrast

On white

6.27
#9828BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9828BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9828BA
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828BA#FFFFFF#000000##FFFFFF
##9828BA1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#2863B7
Tritanopia (blue-blind)
#964A71
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9828ba;
/* rgb */ color: rgb(152, 40, 186);
/* oklch */ color: oklch(51.9% 0.221 316.7);
Tailwind
colors: {
  custom: {
    50: '#bb70cf',
    500: '#9828ba',
    950: '#000000',
  },
}
SCSS
$custom: #9828ba;
$custom-light: #bb70cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9828ba",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 286.027,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51865,
    "c": 0.22097,
    "h": 316.7
  },
  "luminance": 0.11738
}

Semantic roles & 50–950 ramp

primary
#9828BA
secondary
#88CA73
accent
#E84067
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9828BA

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

Preview Lab → · Contrast checker → · Palette generator →

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