#9D2F7C#9D2F7C

#9D2F7C is a mid, vivid pink. Relative luminance 0.107; OKLCH L 49.6% C 0.167 H 342.1°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#9D2F7C
RGBrgb(157, 47, 124)
HSLhsl(318, 54%, 40%)
HSVhsv(318, 70%, 62%)
CMYKcmyk(0%, 70.1%, 21%, 38.4%)
CIE-LABlab(39.00, 53.01, -19.14)
CIE-LCHlch(39.00, 56.36, 340.15°)
OKLaboklab(49.61% 0.1589 -0.0513)
OKLCHoklch(49.61% 0.167 342.1)
XYZxyz(18.5598, 10.6582, 20.1447)
Luminance0.1066 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2F7C #2F9D50
analogous
#872F9D #9D2F7C #9D2F45
triadic
#9D2F7C #7C9D2F #2F7C9D
tetradic
#9D2F7C #9D872F #2F9D50 #2F459D
square
#9D2F7C #9D872F #2F9D50 #2F459D
split-complementary
#9D2F7C #459D2F #2F9D87
monochromatic
#3F1332 #6E2157 #9D2F7C #C7439F #D572B7

Accessibility & contrast

On white

6.71
#9D2F7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D2F7C
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2F7C#FFFFFF#000000##FFFFFF
##9D2F7C1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38507E
Deuteranopia (green-blind)
#5A6279
Tritanopia (blue-blind)
#A73051
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d2f7c;
/* rgb */ color: rgb(157, 47, 124);
/* oklch */ color: oklch(49.6% 0.167 342.1);
Tailwind
colors: {
  custom: {
    50: '#bd71a2',
    500: '#9d2f7c',
    950: '#000000',
  },
}
SCSS
$custom: #9d2f7c;
$custom-light: #bd71a2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2f7c",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 318,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.49615,
    "c": 0.16693,
    "h": 342.1
  },
  "luminance": 0.10656
}

Semantic roles & 50–950 ramp

primary
#9D2F7C
secondary
#6BBC84
accent
#DD774B
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#12080F
muted
#817B7E

Preview Lab

Preview with #9D2F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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