#9D2F7D#9D2F7D

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

Color values

HEX#9D2F7D
RGBrgb(157, 47, 125)
HSLhsl(317, 54%, 40%)
HSVhsv(317, 70%, 62%)
CMYKcmyk(0%, 70.1%, 20.4%, 38.4%)
CIE-LABlab(39.04, 53.16, -19.69)
CIE-LCHlch(39.04, 56.69, 339.67°)
OKLaboklab(49.66% 0.159 -0.0529)
OKLCHoklch(49.66% 0.168 341.6)
XYZxyz(18.6234, 10.6836, 20.4794)
Luminance0.1068 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2F7D #2F9D4F
analogous
#862F9D #9D2F7D #9D2F46
triadic
#9D2F7D #7D9D2F #2F7D9D
tetradic
#9D2F7D #9D862F #2F9D4F #2F469D
square
#9D2F7D #9D862F #2F9D4F #2F469D
split-complementary
#9D2F7D #469D2F #2F9D86
monochromatic
#3F1332 #6E2157 #9D2F7D #C743A0 #D572B8

Accessibility & contrast

On white

6.70
#9D2F7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D2F7D
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2F7D#FFFFFF#000000##FFFFFF
##9D2F7D1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38517F
Deuteranopia (green-blind)
#5A627A
Tritanopia (blue-blind)
#A73152
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d2f7d;
/* rgb */ color: rgb(157, 47, 125);
/* oklch */ color: oklch(49.7% 0.168 341.6);
Tailwind
colors: {
  custom: {
    50: '#bd71a2',
    500: '#9d2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #9d2f7d;
$custom-light: #bd71a2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2f7d",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 317.455,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.49662,
    "c": 0.1676,
    "h": 341.6
  },
  "luminance": 0.10682
}

Semantic roles & 50–950 ramp

primary
#9D2F7D
secondary
#6BBC83
accent
#DD754B
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#12080F
muted
#817B7F

Preview Lab

Preview with #9D2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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