#9C2A87#9C2A87

#9C2A87 is a mid, vivid pink. Relative luminance 0.105; OKLCH L 49.5% C 0.180 H 336.4°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#9C2A87
RGBrgb(156, 42, 135)
HSLhsl(311, 58%, 39%)
HSVhsv(311, 73%, 61%)
CMYKcmyk(0%, 73.1%, 13.5%, 38.8%)
CIE-LABlab(38.68, 56.20, -26.44)
CIE-LCHlch(38.68, 62.11, 334.81°)
OKLaboklab(49.52% 0.165 -0.072)
OKLCHoklch(49.52% 0.18 336.4)
XYZxyz(18.9117, 10.4748, 23.9428)
Luminance0.1047 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2A87 #2A9C3F
analogous
#782A9C #9C2A87 #9C2A4E
triadic
#9C2A87 #879C2A #2A879C
tetradic
#9C2A87 #9C782A #2A9C3F #2A4E9C
square
#9C2A87 #9C782A #2A9C3F #2A4E9C
split-complementary
#9C2A87 #4E9C2A #2A9C78
monochromatic
#3C1034 #6C1D5D #9C2A87 #CA39AF #D76AC3

Accessibility & contrast

On white

6.79
#9C2A87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#9C2A87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2A87
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2A87#FFFFFF#000000##FFFFFF
##9C2A871.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C508A
Deuteranopia (green-blind)
#536184
Tritanopia (blue-blind)
#A43155
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9c2a87;
/* rgb */ color: rgb(156, 42, 135);
/* oklch */ color: oklch(49.5% 0.180 336.4);
Tailwind
colors: {
  custom: {
    50: '#bd6faa',
    500: '#9c2a87',
    950: '#000000',
  },
}
SCSS
$custom: #9c2a87;
$custom-light: #bd6faa;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2a87",
  "rgb": {
    "r": 156,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 311.053,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.49518,
    "c": 0.18005,
    "h": 336.4
  },
  "luminance": 0.10473
}

Semantic roles & 50–950 ramp

primary
#9C2A87
secondary
#65BD75
accent
#E16347
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9C2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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