#9A28A2#9A28A2

#9A28A2 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.6% C 0.202 H 325.1°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#9A28A2
RGBrgb(154, 40, 162)
HSLhsl(296, 60%, 40%)
HSVhsv(296, 75%, 64%)
CMYKcmyk(4.9%, 75.3%, 0%, 36.5%)
CIE-LABlab(39.58, 60.82, -41.46)
CIE-LCHlch(39.58, 73.60, 325.72°)
OKLaboklab(50.57% 0.1657 -0.1154)
OKLCHoklch(50.57% 0.202 325.1)
XYZxyz(20.6063, 10.9976, 35.2128)
Luminance0.1100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A28A2 #30A228
analogous
#5D28A2 #9A28A2 #A2286D
triadic
#9A28A2 #A29A28 #28A29A
tetradic
#9A28A2 #A25D28 #30A228 #286DA2
square
#9A28A2 #A25D28 #30A228 #286DA2
split-complementary
#9A28A2 #6DA228 #28A25D
monochromatic
#3D1040 #6B1C71 #9A28A2 #C439CE #D36ADA

Accessibility & contrast

On white

6.56
#9A28A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#9A28A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A28A2
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A28A2#FFFFFF#000000##FFFFFF
##9A28A21.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#42629F
Tritanopia (blue-blind)
#9D3E63
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9a28a2;
/* rgb */ color: rgb(154, 40, 162);
/* oklch */ color: oklch(50.6% 0.202 325.1);
Tailwind
colors: {
  custom: {
    50: '#bb6fbe',
    500: '#9a28a2',
    950: '#000000',
  },
}
SCSS
$custom: #9a28a2;
$custom-light: #bb6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9a28a2",
  "rgb": {
    "r": 154,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 296.066,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50571,
    "c": 0.20192,
    "h": 325.1
  },
  "luminance": 0.10996
}

Semantic roles & 50–950 ramp

primary
#9A28A2
secondary
#6BC165
accent
#E4444F
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9A28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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