#9C28A8#9C28A8

#9C28A8 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.2% C 0.208 H 323.8°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#9C28A8
RGBrgb(156, 40, 168)
HSLhsl(294, 62%, 41%)
HSVhsv(294, 76%, 66%)
CMYKcmyk(7.1%, 76.2%, 0%, 34.1%)
CIE-LABlab(40.27, 62.28, -43.93)
CIE-LCHlch(40.27, 76.22, 324.81°)
OKLaboklab(51.24% 0.1676 -0.1226)
OKLCHoklch(51.24% 0.208 323.8)
XYZxyz(21.5364, 11.4140, 38.1070)
Luminance0.1141 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C28A8 #34A828
analogous
#5C28A8 #9C28A8 #A82874
triadic
#9C28A8 #A89C28 #28A89C
tetradic
#9C28A8 #A85C28 #34A828 #2874A8
square
#9C28A8 #A85C28 #34A828 #2874A8
split-complementary
#9C28A8 #74A828 #28A85C
monochromatic
#401045 #6E1C77 #9C28A8 #C33DD1 #D26EDC

Accessibility & contrast

On white

6.40
#9C28A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#9C28A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C28A8
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C28A8#FFFFFF#000000##FFFFFF
##9C28A81.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#4063A5
Tritanopia (blue-blind)
#9F4067
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9c28a8;
/* rgb */ color: rgb(156, 40, 168);
/* oklch */ color: oklch(51.2% 0.208 323.8);
Tailwind
colors: {
  custom: {
    50: '#bd6fc2',
    500: '#9c28a8',
    950: '#000000',
  },
}
SCSS
$custom: #9c28a8;
$custom-light: #bd6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9c28a8",
  "rgb": {
    "r": 156,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 294.375,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51244,
    "c": 0.20765,
    "h": 323.8
  },
  "luminance": 0.11413
}

Semantic roles & 50–950 ramp

primary
#9C28A8
secondary
#71C369
accent
#E54352
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9C28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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