#9C288A#9C288A

#9C288A is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.184 H 335.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#9C288A
RGBrgb(156, 40, 138)
HSLhsl(309, 59%, 38%)
HSVhsv(309, 74%, 61%)
CMYKcmyk(0%, 74.4%, 11.5%, 38.8%)
CIE-LABlab(38.59, 57.34, -28.43)
CIE-LCHlch(38.59, 64.00, 333.63°)
OKLaboklab(49.5% 0.1674 -0.0777)
OKLCHoklch(49.5% 0.185 335.1)
XYZxyz(19.0568, 10.4222, 25.0478)
Luminance0.1042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C288A #289C3A
analogous
#74289C #9C288A #9C2850
triadic
#9C288A #8A9C28 #288A9C
tetradic
#9C288A #9C7428 #289C3A #28509C
square
#9C288A #9C7428 #289C3A #28509C
split-complementary
#9C288A #509C28 #289C74
monochromatic
#3B0F34 #6B1C5F #9C288A #CB36B4 #D867C6

Accessibility & contrast

On white

6.81
#9C288A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9C288A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C288A
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C288A#FFFFFF#000000##FFFFFF
##9C288A1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28508D
Deuteranopia (green-blind)
#516187
Tritanopia (blue-blind)
#A43156
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9c288a;
/* rgb */ color: rgb(156, 40, 138);
/* oklch */ color: oklch(49.5% 0.184 335.1);
Tailwind
colors: {
  custom: {
    50: '#bd6eac',
    500: '#9c288a',
    950: '#000000',
  },
}
SCSS
$custom: #9c288a;
$custom-light: #bd6eac;
$custom-dark: #000000;
JSON
{
  "hex": "#9c288a",
  "rgb": {
    "r": 156,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 309.31,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.495,
    "c": 0.1845,
    "h": 335.1
  },
  "luminance": 0.1042
}

Semantic roles & 50–950 ramp

primary
#9C288A
secondary
#62BE70
accent
#E25E45
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9C288A

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

Preview Lab → · Contrast checker → · Palette generator →

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