#9828BC#9828BC

#9828BC is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 52.0% C 0.223 H 316.1°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#9828BC
RGBrgb(152, 40, 188)
HSLhsl(285, 65%, 45%)
HSVhsv(285, 79%, 74%)
CMYKcmyk(19.1%, 78.7%, 0%, 26.3%)
CIE-LABlab(40.94, 65.18, -54.73)
CIE-LCHlch(40.94, 85.11, 319.98°)
OKLaboklab(52.01% 0.1605 -0.1544)
OKLCHoklch(52.01% 0.223 316.1)
XYZxyz(22.7834, 11.8248, 48.6495)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828BC #4CBC28
analogous
#4E28BC #9828BC #BC2896
triadic
#9828BC #BC9828 #28BC98
tetradic
#9828BC #BC4E28 #4CBC28 #2896BC
square
#9828BC #BC4E28 #4CBC28 #2896BC
split-complementary
#9828BC #96BC28 #28BC4E
monochromatic
#461357 #6F1D8A #9828BC #B549D8 #CA7BE3

Accessibility & contrast

On white

6.24
#9828BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#9828BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9828BC
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828BC#FFFFFF#000000##FFFFFF
##9828BC1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#2663B9
Tritanopia (blue-blind)
#954A72
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9828bc;
/* rgb */ color: rgb(152, 40, 188);
/* oklch */ color: oklch(52.0% 0.223 316.1);
Tailwind
colors: {
  custom: {
    50: '#bb70d1',
    500: '#9828bc',
    950: '#000000',
  },
}
SCSS
$custom: #9828bc;
$custom-light: #bb70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9828bc",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 285.405,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52006,
    "c": 0.22267,
    "h": 316.1
  },
  "luminance": 0.11824
}

Semantic roles & 50–950 ramp

primary
#9828BC
secondary
#8ACB75
accent
#E84069
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9828BC

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

Preview Lab → · Contrast checker → · Palette generator →

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