#9A28BF#9A28BF

#9A28BF is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.5% C 0.226 H 316.0°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9A28BF
RGBrgb(154, 40, 191)
HSLhsl(285, 65%, 45%)
HSVhsv(285, 79%, 75%)
CMYKcmyk(19.4%, 79.1%, 0%, 25.1%)
CIE-LABlab(41.45, 66.12, -55.64)
CIE-LCHlch(41.45, 86.42, 319.92°)
OKLaboklab(52.5% 0.1624 -0.157)
OKLCHoklch(52.5% 0.226 316)
XYZxyz(23.4877, 12.1501, 50.3881)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A28BF #4DBF28
analogous
#4E28BF #9A28BF #BF2898
triadic
#9A28BF #BF9A28 #28BF9A
tetradic
#9A28BF #BF4E28 #4DBF28 #2898BF
square
#9A28BF #BF4E28 #4DBF28 #2898BF
split-complementary
#9A28BF #98BF28 #28BF4E
monochromatic
#48135A #711D8C #9A28BF #B64BD9 #CB7EE4

Accessibility & contrast

On white

6.12
#9A28BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9A28BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A28BF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A28BF#FFFFFF#000000##FFFFFF
##9A28BF1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#2565BC
Tritanopia (blue-blind)
#974C74
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9a28bf;
/* rgb */ color: rgb(154, 40, 191);
/* oklch */ color: oklch(52.5% 0.226 316.0);
Tailwind
colors: {
  custom: {
    50: '#bc70d3',
    500: '#9a28bf',
    950: '#000000',
  },
}
SCSS
$custom: #9a28bf;
$custom-light: #bc70d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a28bf",
  "rgb": {
    "r": 154,
    "g": 40,
    "b": 191
  },
  "hsl": {
    "h": 285.298,
    "s": 65.368,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52497,
    "c": 0.22588,
    "h": 316
  },
  "luminance": 0.12149
}

Semantic roles & 50–950 ramp

primary
#9A28BF
secondary
#8CCC77
accent
#E83F69
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130814
muted
#827B83

Preview Lab

Preview with #9A28BF

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

Preview Lab → · Contrast checker → · Palette generator →

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