#9828B1#9828B1

#9828B1 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.2% C 0.213 H 319.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9828B1
RGBrgb(152, 40, 177)
HSLhsl(289, 63%, 43%)
HSVhsv(289, 77%, 69%)
CMYKcmyk(14.1%, 77.4%, 0%, 30.6%)
CIE-LABlab(40.19, 63.11, -49.44)
CIE-LCHlch(40.19, 80.17, 321.92°)
OKLaboklab(51.25% 0.1621 -0.1388)
OKLCHoklch(51.25% 0.213 319.4)
XYZxyz(21.6425, 11.3684, 42.6408)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828B1 #41B128
analogous
#5328B1 #9828B1 #B12886
triadic
#9828B1 #B19828 #28B198
tetradic
#9828B1 #B15328 #41B128 #2886B1
square
#9828B1 #B15328 #41B128 #2886B1
split-complementary
#9828B1 #86B128 #28B153
monochromatic
#42114D #6D1D7F #9828B1 #BA42D4 #CC74E0

Accessibility & contrast

On white

6.42
#9828B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9828B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9828B1
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828B1#FFFFFF#000000##FFFFFF
##9828B11.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B5
Deuteranopia (green-blind)
#3362AE
Tritanopia (blue-blind)
#98456C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9828b1;
/* rgb */ color: rgb(152, 40, 177);
/* oklch */ color: oklch(51.2% 0.213 319.4);
Tailwind
colors: {
  custom: {
    50: '#ba6fc9',
    500: '#9828b1',
    950: '#000000',
  },
}
SCSS
$custom: #9828b1;
$custom-light: #ba6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9828b1",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 289.051,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51247,
    "c": 0.21341,
    "h": 319.4
  },
  "luminance": 0.11367
}

Semantic roles & 50–950 ramp

primary
#9828B1
secondary
#7EC76E
accent
#E64260
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9828B1

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

Preview Lab → · Contrast checker → · Palette generator →

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