#9D2F7B#9D2F7B

#9D2F7B is a mid, vivid pink. Relative luminance 0.106; OKLCH L 49.6% C 0.166 H 342.6°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#9D2F7B
RGBrgb(157, 47, 123)
HSLhsl(319, 54%, 40%)
HSVhsv(319, 70%, 62%)
CMYKcmyk(0%, 70.1%, 21.7%, 38.4%)
CIE-LABlab(38.96, 52.87, -18.58)
CIE-LCHlch(38.96, 56.04, 340.63°)
OKLaboklab(49.57% 0.1587 -0.0498)
OKLCHoklch(49.57% 0.166 342.6)
XYZxyz(18.4969, 10.6330, 19.8133)
Luminance0.1063 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2F7B #2F9D51
analogous
#882F9D #9D2F7B #9D2F44
triadic
#9D2F7B #7B9D2F #2F7B9D
tetradic
#9D2F7B #9D882F #2F9D51 #2F449D
square
#9D2F7B #9D882F #2F9D51 #2F449D
split-complementary
#9D2F7B #449D2F #2F9D88
monochromatic
#3F1331 #6E2156 #9D2F7B #C7439E #D572B6

Accessibility & contrast

On white

6.72
#9D2F7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9D2F7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2F7B
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2F7B#FFFFFF#000000##FFFFFF
##9D2F7B1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39507D
Deuteranopia (green-blind)
#5A6278
Tritanopia (blue-blind)
#A73051
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d2f7b;
/* rgb */ color: rgb(157, 47, 123);
/* oklch */ color: oklch(49.6% 0.166 342.6);
Tailwind
colors: {
  custom: {
    50: '#bd71a1',
    500: '#9d2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #9d2f7b;
$custom-light: #bd71a1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2f7b",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 318.545,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.4957,
    "c": 0.16628,
    "h": 342.6
  },
  "luminance": 0.10631
}

Semantic roles & 50–950 ramp

primary
#9D2F7B
secondary
#6BBC84
accent
#DD784B
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080F
muted
#827B7E

Preview Lab

Preview with #9D2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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