#9D2F81#9D2F81

#9D2F81 is a mid, vivid pink. Relative luminance 0.108; OKLCH L 49.9% C 0.170 H 339.7°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#9D2F81
RGBrgb(157, 47, 129)
HSLhsl(315, 54%, 40%)
HSVhsv(315, 70%, 62%)
CMYKcmyk(0%, 70.1%, 17.8%, 38.4%)
CIE-LABlab(39.22, 53.74, -21.89)
CIE-LCHlch(39.22, 58.02, 337.84°)
OKLaboklab(49.85% 0.1597 -0.0591)
OKLCHoklch(49.85% 0.17 339.7)
XYZxyz(18.8841, 10.7879, 21.8523)
Luminance0.1079 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2F81 #2F9D4B
analogous
#822F9D #9D2F81 #9D2F4A
triadic
#9D2F81 #819D2F #2F819D
tetradic
#9D2F81 #9D822F #2F9D4B #2F4A9D
square
#9D2F81 #9D822F #2F9D4B #2F4A9D
split-complementary
#9D2F81 #4A9D2F #2F9D82
monochromatic
#3F1334 #6E215A #9D2F81 #C743A5 #D572BB

Accessibility & contrast

On white

6.65
#9D2F81 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9D2F81 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2F81
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2F81#FFFFFF#000000##FFFFFF
##9D2F811.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365183
Deuteranopia (green-blind)
#58637E
Tritanopia (blue-blind)
#A63254
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d2f81;
/* rgb */ color: rgb(157, 47, 129);
/* oklch */ color: oklch(49.9% 0.170 339.7);
Tailwind
colors: {
  custom: {
    50: '#bd71a5',
    500: '#9d2f81',
    950: '#000000',
  },
}
SCSS
$custom: #9d2f81;
$custom-light: #bd71a5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2f81",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 315.273,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.4985,
    "c": 0.17031,
    "h": 339.7
  },
  "luminance": 0.10786
}

Semantic roles & 50–950 ramp

primary
#9D2F81
secondary
#6BBC80
accent
#DD704B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#12080F
muted
#817B7F

Preview Lab

Preview with #9D2F81

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

Preview Lab → · Contrast checker → · Palette generator →

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