#9B28A2#9B28A2

#9B28A2 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.7% C 0.202 H 325.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#9B28A2
RGBrgb(155, 40, 162)
HSLhsl(297, 60%, 40%)
HSVhsv(297, 75%, 64%)
CMYKcmyk(4.3%, 75.3%, 0%, 36.5%)
CIE-LABlab(39.74, 61.03, -41.19)
CIE-LCHlch(39.74, 73.63, 325.99°)
OKLaboklab(50.72% 0.1668 -0.1146)
OKLCHoklch(50.72% 0.202 325.5)
XYZxyz(20.7975, 11.0962, 35.2218)
Luminance0.1109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B28A2 #2FA228
analogous
#5E28A2 #9B28A2 #A2286C
triadic
#9B28A2 #A29B28 #28A29B
tetradic
#9B28A2 #A25E28 #2FA228 #286CA2
square
#9B28A2 #A25E28 #2FA228 #286CA2
split-complementary
#9B28A2 #6CA228 #28A25E
monochromatic
#3D1040 #6C1C71 #9B28A2 #C639CE #D46ADA

Accessibility & contrast

On white

6.52
#9B28A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9B28A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B28A2
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B28A2#FFFFFF#000000##FFFFFF
##9B28A21.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#43629F
Tritanopia (blue-blind)
#9F3D63
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9b28a2;
/* rgb */ color: rgb(155, 40, 162);
/* oklch */ color: oklch(50.7% 0.202 325.5);
Tailwind
colors: {
  custom: {
    50: '#bc6fbe',
    500: '#9b28a2',
    950: '#000000',
  },
}
SCSS
$custom: #9b28a2;
$custom-light: #bc6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9b28a2",
  "rgb": {
    "r": 155,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 296.557,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50721,
    "c": 0.20238,
    "h": 325.5
  },
  "luminance": 0.11095
}

Semantic roles & 50–950 ramp

primary
#9B28A2
secondary
#6AC165
accent
#E4444D
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9B28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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