#9D2F7E#9D2F7E

#9D2F7E is a mid, vivid pink. Relative luminance 0.107; OKLCH L 49.7% C 0.168 H 341.1°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#9D2F7E
RGBrgb(157, 47, 126)
HSLhsl(317, 54%, 40%)
HSVhsv(317, 70%, 62%)
CMYKcmyk(0%, 70.1%, 19.7%, 38.4%)
CIE-LABlab(39.09, 53.30, -20.24)
CIE-LCHlch(39.09, 57.01, 339.21°)
OKLaboklab(49.71% 0.1592 -0.0544)
OKLCHoklch(49.71% 0.168 341.1)
XYZxyz(18.6876, 10.7093, 20.8175)
Luminance0.1071 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2F7E #2F9D4E
analogous
#852F9D #9D2F7E #9D2F47
triadic
#9D2F7E #7E9D2F #2F7E9D
tetradic
#9D2F7E #9D852F #2F9D4E #2F479D
square
#9D2F7E #9D852F #2F9D4E #2F479D
split-complementary
#9D2F7E #479D2F #2F9D85
monochromatic
#3F1332 #6E2158 #9D2F7E #C743A1 #D572B9

Accessibility & contrast

On white

6.68
#9D2F7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#9D2F7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2F7E
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2F7E#FFFFFF#000000##FFFFFF
##9D2F7E1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375180
Deuteranopia (green-blind)
#59627B
Tritanopia (blue-blind)
#A63152
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d2f7e;
/* rgb */ color: rgb(157, 47, 126);
/* oklch */ color: oklch(49.7% 0.168 341.1);
Tailwind
colors: {
  custom: {
    50: '#bd71a3',
    500: '#9d2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #9d2f7e;
$custom-light: #bd71a3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2f7e",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 316.909,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.49708,
    "c": 0.16826,
    "h": 341.1
  },
  "luminance": 0.10707
}

Semantic roles & 50–950 ramp

primary
#9D2F7E
secondary
#6BBC82
accent
#DD744B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#12080F
muted
#817B7F

Preview Lab

Preview with #9D2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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