#9C2F87#9C2F87

#9C2F87 is a mid, vivid pink. Relative luminance 0.108; OKLCH L 50.0% C 0.174 H 336.6°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#9C2F87
RGBrgb(156, 47, 135)
HSLhsl(312, 54%, 40%)
HSVhsv(312, 70%, 61%)
CMYKcmyk(0%, 69.9%, 13.5%, 38.8%)
CIE-LABlab(39.33, 54.38, -25.43)
CIE-LCHlch(39.33, 60.03, 334.94°)
OKLaboklab(49.99% 0.1596 -0.0691)
OKLCHoklch(49.99% 0.174 336.6)
XYZxyz(19.1003, 10.8519, 24.0056)
Luminance0.1085 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2F87 #2F9C44
analogous
#7B2F9C #9C2F87 #9C2F50
triadic
#9C2F87 #879C2F #2F879C
tetradic
#9C2F87 #9C7B2F #2F9C44 #2F509C
square
#9C2F87 #9C7B2F #2F9C44 #2F509C
split-complementary
#9C2F87 #509C2F #2F9C7B
monochromatic
#3E1336 #6D215E #9C2F87 #C642AD #D471C1

Accessibility & contrast

On white

6.62
#9C2F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#9C2F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2F87
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2F87#FFFFFF#000000##FFFFFF
##9C2F871.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31528A
Deuteranopia (green-blind)
#556384
Tritanopia (blue-blind)
#A43557
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9c2f87;
/* rgb */ color: rgb(156, 47, 135);
/* oklch */ color: oklch(50.0% 0.174 336.6);
Tailwind
colors: {
  custom: {
    50: '#bc71aa',
    500: '#9c2f87',
    950: '#000000',
  },
}
SCSS
$custom: #9c2f87;
$custom-light: #bc71aa;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2f87",
  "rgb": {
    "r": 156,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 311.56,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49988,
    "c": 0.17392,
    "h": 336.6
  },
  "luminance": 0.1085
}

Semantic roles & 50–950 ramp

primary
#9C2F87
secondary
#6BBC7B
accent
#DD674B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9C2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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