#9C28A2#9C28A2

#9C28A2 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 50.9% C 0.203 H 325.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#9C28A2
RGBrgb(156, 40, 162)
HSLhsl(297, 60%, 40%)
HSVhsv(297, 75%, 64%)
CMYKcmyk(3.7%, 75.3%, 0%, 36.5%)
CIE-LABlab(39.91, 61.24, -40.91)
CIE-LCHlch(39.91, 73.65, 326.26°)
OKLaboklab(50.87% 0.1679 -0.1138)
OKLCHoklch(50.87% 0.203 325.9)
XYZxyz(20.9902, 11.1956, 35.2308)
Luminance0.1119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C28A2 #2EA228
analogous
#5F28A2 #9C28A2 #A2286B
triadic
#9C28A2 #A29C28 #28A29C
tetradic
#9C28A2 #A25F28 #2EA228 #286BA2
square
#9C28A2 #A25F28 #2EA228 #286BA2
split-complementary
#9C28A2 #6BA228 #28A25F
monochromatic
#3D1040 #6D1C71 #9C28A2 #C739CE #D56ADA

Accessibility & contrast

On white

6.48
#9C28A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#9C28A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C28A2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C28A2#FFFFFF#000000##FFFFFF
##9C28A21.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#44639F
Tritanopia (blue-blind)
#A03D63
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9c28a2;
/* rgb */ color: rgb(156, 40, 162);
/* oklch */ color: oklch(50.9% 0.203 325.9);
Tailwind
colors: {
  custom: {
    50: '#bd6fbe',
    500: '#9c28a2',
    950: '#000000',
  },
}
SCSS
$custom: #9c28a2;
$custom-light: #bd6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9c28a2",
  "rgb": {
    "r": 156,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 297.049,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50871,
    "c": 0.20284,
    "h": 325.9
  },
  "luminance": 0.11194
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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