#9C2A7D#9C2A7D

#9C2A7D is a mid, vivid pink. Relative luminance 0.102; OKLCH L 49.0% C 0.173 H 340.9°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#9C2A7D
RGBrgb(156, 42, 125)
HSLhsl(316, 58%, 39%)
HSVhsv(316, 73%, 61%)
CMYKcmyk(0%, 73.1%, 19.9%, 38.8%)
CIE-LABlab(38.21, 54.74, -20.99)
CIE-LCHlch(38.21, 58.63, 339.02°)
OKLaboklab(49.02% 0.1637 -0.0565)
OKLCHoklch(49.02% 0.173 340.9)
XYZxyz(18.2405, 10.2063, 20.4074)
Luminance0.1021 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2A7D #2A9C49
analogous
#822A9C #9C2A7D #9C2A44
triadic
#9C2A7D #7D9C2A #2A7D9C
tetradic
#9C2A7D #9C822A #2A9C49 #2A449C
square
#9C2A7D #9C822A #2A9C49 #2A449C
split-complementary
#9C2A7D #449C2A #2A9C82
monochromatic
#3C1030 #6C1D56 #9C2A7D #CA39A3 #D76AB9

Accessibility & contrast

On white

6.91
#9C2A7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9C2A7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2A7D
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2A7D#FFFFFF#000000##FFFFFF
##9C2A7D1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334E7F
Deuteranopia (green-blind)
#57617A
Tritanopia (blue-blind)
#A62D50
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9c2a7d;
/* rgb */ color: rgb(156, 42, 125);
/* oklch */ color: oklch(49.0% 0.173 340.9);
Tailwind
colors: {
  custom: {
    50: '#bd6ea3',
    500: '#9c2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #9c2a7d;
$custom-light: #bd6ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2a7d",
  "rgb": {
    "r": 156,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 316.316,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.49023,
    "c": 0.17313,
    "h": 340.9
  },
  "luminance": 0.10205
}

Semantic roles & 50–950 ramp

primary
#9C2A7D
secondary
#65BD7D
accent
#E17147
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#12080F
muted
#817B7F

Preview Lab

Preview with #9C2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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