#9828B0#9828B0

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

Color values

HEX#9828B0
RGBrgb(152, 40, 176)
HSLhsl(289, 63%, 42%)
HSVhsv(289, 77%, 69%)
CMYKcmyk(13.6%, 77.3%, 0%, 31%)
CIE-LABlab(40.13, 62.92, -48.95)
CIE-LCHlch(40.13, 79.72, 322.12°)
OKLaboklab(51.18% 0.1622 -0.1374)
OKLCHoklch(51.18% 0.213 319.7)
XYZxyz(21.5432, 11.3287, 42.1178)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828B0 #40B028
analogous
#5428B0 #9828B0 #B02884
triadic
#9828B0 #B09828 #28B098
tetradic
#9828B0 #B05428 #40B028 #2884B0
square
#9828B0 #B05428 #40B028 #2884B0
split-complementary
#9828B0 #84B028 #28B054
monochromatic
#42114C #6D1D7E #9828B0 #BA41D4 #CC73DF

Accessibility & contrast

On white

6.43
#9828B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9828B0
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828B0#FFFFFF#000000##FFFFFF
##9828B01.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B4
Deuteranopia (green-blind)
#3462AD
Tritanopia (blue-blind)
#98456B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9828b0;
/* rgb */ color: rgb(152, 40, 176);
/* oklch */ color: oklch(51.2% 0.213 319.7);
Tailwind
colors: {
  custom: {
    50: '#ba6fc8',
    500: '#9828b0',
    950: '#000000',
  },
}
SCSS
$custom: #9828b0;
$custom-light: #ba6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#9828b0",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 289.412,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5118,
    "c": 0.21258,
    "h": 319.7
  },
  "luminance": 0.11328
}

Semantic roles & 50–950 ramp

primary
#9828B0
secondary
#7DC66D
accent
#E6425F
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9828B0

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

Preview Lab → · Contrast checker → · Palette generator →

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