#9828AF#9828AF

#9828AF is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.1% C 0.212 H 320.0°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#9828AF
RGBrgb(152, 40, 175)
HSLhsl(290, 63%, 42%)
HSVhsv(290, 77%, 69%)
CMYKcmyk(13.1%, 77.1%, 0%, 31.4%)
CIE-LABlab(40.06, 62.74, -48.46)
CIE-LCHlch(40.06, 79.28, 322.32°)
OKLaboklab(51.11% 0.1623 -0.136)
OKLCHoklch(51.11% 0.212 320)
XYZxyz(21.4446, 11.2892, 41.5986)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9828AF #3FAF28
analogous
#5528AF #9828AF #AF2883
triadic
#9828AF #AF9828 #28AF98
tetradic
#9828AF #AF5528 #3FAF28 #2883AF
square
#9828AF #AF5528 #3FAF28 #2883AF
split-complementary
#9828AF #83AF28 #28AF55
monochromatic
#41114B #6D1D7D #9828AF #BA41D4 #CC73DF

Accessibility & contrast

On white

6.45
#9828AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#9828AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9828AF
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9828AF#FFFFFF#000000##FFFFFF
##9828AF1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#3562AC
Tritanopia (blue-blind)
#98446B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9828af;
/* rgb */ color: rgb(152, 40, 175);
/* oklch */ color: oklch(51.1% 0.212 320.0);
Tailwind
colors: {
  custom: {
    50: '#ba6fc7',
    500: '#9828af',
    950: '#000000',
  },
}
SCSS
$custom: #9828af;
$custom-light: #ba6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#9828af",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 289.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51113,
    "c": 0.21174,
    "h": 320
  },
  "luminance": 0.11288
}

Semantic roles & 50–950 ramp

primary
#9828AF
secondary
#7CC66D
accent
#E6425E
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9828AF

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

Preview Lab → · Contrast checker → · Palette generator →

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