#9828BD#9828BD

#9828BD is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.1% C 0.224 H 315.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#9828BD
RGBrgb(152, 40, 189)
HSLhsl(285, 65%, 45%)
HSVhsv(285, 79%, 74%)
CMYKcmyk(19.6%, 78.8%, 0%, 25.9%)
CIE-LABlab(41.01, 65.37, -55.21)
CIE-LCHlch(41.01, 85.57, 319.82°)
OKLaboklab(52.08% 0.1603 -0.1558)
OKLCHoklch(52.08% 0.224 315.8)
XYZxyz(22.8915, 11.8680, 49.2192)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828BD #4DBD28
analogous
#4E28BD #9828BD #BD2897
triadic
#9828BD #BD9828 #28BD98
tetradic
#9828BD #BD4E28 #4DBD28 #2897BD
square
#9828BD #BD4E28 #4DBD28 #2897BD
split-complementary
#9828BD #97BD28 #28BD4E
monochromatic
#471358 #6F1D8A #9828BD #B54AD9 #CA7CE3

Accessibility & contrast

On white

6.23
#9828BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9828BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9828BD
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828BD#FFFFFF#000000##FFFFFF
##9828BD1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#2464BA
Tritanopia (blue-blind)
#954B73
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9828bd;
/* rgb */ color: rgb(152, 40, 189);
/* oklch */ color: oklch(52.1% 0.224 315.8);
Tailwind
colors: {
  custom: {
    50: '#bb70d2',
    500: '#9828bd',
    950: '#000000',
  },
}
SCSS
$custom: #9828bd;
$custom-light: #bb70d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9828bd",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 285.101,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52077,
    "c": 0.22351,
    "h": 315.8
  },
  "luminance": 0.11867
}

Semantic roles & 50–950 ramp

primary
#9828BD
secondary
#8BCB75
accent
#E8406A
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #9828BD

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

Preview Lab → · Contrast checker → · Palette generator →

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