#9D2F8A#9D2F8A

#9D2F8A is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.3% C 0.177 H 335.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#9D2F8A
RGBrgb(157, 47, 138)
HSLhsl(310, 54%, 40%)
HSVhsv(310, 70%, 62%)
CMYKcmyk(0%, 70.1%, 12.1%, 38.4%)
CIE-LABlab(39.64, 55.10, -26.76)
CIE-LCHlch(39.64, 61.25, 334.09°)
OKLaboklab(50.3% 0.161 -0.0729)
OKLCHoklch(50.3% 0.177 335.6)
XYZxyz(19.5088, 11.0378, 25.1429)
Luminance0.1104 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2F8A #2F9D42
analogous
#792F9D #9D2F8A #9D2F53
triadic
#9D2F8A #8A9D2F #2F8A9D
tetradic
#9D2F8A #9D792F #2F9D42 #2F539D
square
#9D2F8A #9D792F #2F9D42 #2F539D
split-complementary
#9D2F8A #539D2F #2F9D79
monochromatic
#3F1337 #6E2161 #9D2F8A #C743B0 #D572C4

Accessibility & contrast

On white

6.55
#9D2F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9D2F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2F8A
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2F8A#FFFFFF#000000##FFFFFF
##9D2F8A1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538D
Deuteranopia (green-blind)
#556387
Tritanopia (blue-blind)
#A53658
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d2f8a;
/* rgb */ color: rgb(157, 47, 138);
/* oklch */ color: oklch(50.3% 0.177 335.6);
Tailwind
colors: {
  custom: {
    50: '#bd71ac',
    500: '#9d2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #9d2f8a;
$custom-light: #bd71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2f8a",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 310.364,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.50295,
    "c": 0.17676,
    "h": 335.6
  },
  "luminance": 0.11036
}

Semantic roles & 50–950 ramp

primary
#9D2F8A
secondary
#6BBC79
accent
#DD644B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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