#9828B2#9828B2

#9828B2 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.3% C 0.214 H 319.1°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#9828B2
RGBrgb(152, 40, 178)
HSLhsl(289, 63%, 43%)
HSVhsv(289, 78%, 70%)
CMYKcmyk(14.6%, 77.5%, 0%, 30.2%)
CIE-LABlab(40.26, 63.29, -49.93)
CIE-LCHlch(40.26, 80.61, 321.73°)
OKLaboklab(51.31% 0.1619 -0.1403)
OKLCHoklch(51.31% 0.214 319.1)
XYZxyz(21.7425, 11.4084, 43.1676)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828B2 #42B228
analogous
#5328B2 #9828B2 #B22887
triadic
#9828B2 #B29828 #28B298
tetradic
#9828B2 #B25328 #42B228 #2887B2
square
#9828B2 #B25328 #42B228 #2887B2
split-complementary
#9828B2 #87B228 #28B253
monochromatic
#43124E #6D1D80 #9828B2 #B943D5 #CC75E0

Accessibility & contrast

On white

6.40
#9828B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#9828B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9828B2
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828B2#FFFFFF#000000##FFFFFF
##9828B21.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#3262AF
Tritanopia (blue-blind)
#98466D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9828b2;
/* rgb */ color: rgb(152, 40, 178);
/* oklch */ color: oklch(51.3% 0.214 319.1);
Tailwind
colors: {
  custom: {
    50: '#ba6fca',
    500: '#9828b2',
    950: '#000000',
  },
}
SCSS
$custom: #9828b2;
$custom-light: #ba6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#9828b2",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 288.696,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51314,
    "c": 0.21424,
    "h": 319.1
  },
  "luminance": 0.11407
}

Semantic roles & 50–950 ramp

primary
#9828B2
secondary
#7FC76F
accent
#E64161
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9828B2

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

Preview Lab → · Contrast checker → · Palette generator →

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