#9A28BC#9A28BC

#9A28BC is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.3% C 0.223 H 316.8°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9A28BC
RGBrgb(154, 40, 188)
HSLhsl(286, 65%, 45%)
HSVhsv(286, 79%, 74%)
CMYKcmyk(18.1%, 78.7%, 0%, 26.3%)
CIE-LABlab(41.25, 65.55, -54.22)
CIE-LCHlch(41.25, 85.06, 320.41°)
OKLaboklab(52.29% 0.1629 -0.1528)
OKLCHoklch(52.29% 0.223 316.8)
XYZxyz(23.1609, 12.0194, 48.6672)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A28BC #4ABC28
analogous
#5028BC #9A28BC #BC2894
triadic
#9A28BC #BC9A28 #28BC9A
tetradic
#9A28BC #BC5028 #4ABC28 #2894BC
square
#9A28BC #BC5028 #4ABC28 #2894BC
split-complementary
#9A28BC #94BC28 #28BC50
monochromatic
#471357 #711D8A #9A28BC #B749D8 #CB7BE3

Accessibility & contrast

On white

6.17
#9A28BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9A28BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A28BC
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A28BC#FFFFFF#000000##FFFFFF
##9A28BC1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#2964B9
Tritanopia (blue-blind)
#984A72
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9a28bc;
/* rgb */ color: rgb(154, 40, 188);
/* oklch */ color: oklch(52.3% 0.223 316.8);
Tailwind
colors: {
  custom: {
    50: '#bc70d1',
    500: '#9a28bc',
    950: '#000000',
  },
}
SCSS
$custom: #9a28bc;
$custom-light: #bc70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a28bc",
  "rgb": {
    "r": 154,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 286.216,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52286,
    "c": 0.22336,
    "h": 316.8
  },
  "luminance": 0.12018
}

Semantic roles & 50–950 ramp

primary
#9A28BC
secondary
#89CB75
accent
#E84067
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9A28BC

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

Preview Lab → · Contrast checker → · Palette generator →

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