#9A28B6#9A28B6

#9A28B6 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.9% C 0.218 H 318.6°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9A28B6
RGBrgb(154, 40, 182)
HSLhsl(288, 64%, 44%)
HSVhsv(288, 78%, 71%)
CMYKcmyk(15.4%, 78%, 0%, 28.6%)
CIE-LABlab(40.84, 64.42, -51.34)
CIE-LCHlch(40.84, 82.37, 321.45°)
OKLaboklab(51.87% 0.1638 -0.1443)
OKLCHoklch(51.87% 0.218 318.6)
XYZxyz(22.5276, 11.7661, 45.3314)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A28B6 #44B628
analogous
#5328B6 #9A28B6 #B6288B
triadic
#9A28B6 #B69A28 #28B69A
tetradic
#9A28B6 #B65328 #44B628 #288BB6
square
#9A28B6 #B65328 #44B628 #288BB6
split-complementary
#9A28B6 #8BB628 #28B653
monochromatic
#451252 #701D84 #9A28B6 #BA45D6 #CC77E1

Accessibility & contrast

On white

6.26
#9A28B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9A28B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A28B6
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A28B6#FFFFFF#000000##FFFFFF
##9A28B61.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BA
Deuteranopia (green-blind)
#3164B3
Tritanopia (blue-blind)
#99476F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9a28b6;
/* rgb */ color: rgb(154, 40, 182);
/* oklch */ color: oklch(51.9% 0.218 318.6);
Tailwind
colors: {
  custom: {
    50: '#bc70cd',
    500: '#9a28b6',
    950: '#000000',
  },
}
SCSS
$custom: #9a28b6;
$custom-light: #bc70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9a28b6",
  "rgb": {
    "r": 154,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 288.169,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51872,
    "c": 0.21834,
    "h": 318.6
  },
  "luminance": 0.11765
}

Semantic roles & 50–950 ramp

primary
#9A28B6
secondary
#82C971
accent
#E74162
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #9A28B6

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

Preview Lab → · Contrast checker → · Palette generator →

#9A28B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva