#9F2F7D#9F2F7D

#9F2F7D is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.0% C 0.169 H 342.3°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9F2F7D
RGBrgb(159, 47, 125)
HSLhsl(318, 54%, 40%)
HSVhsv(318, 70%, 62%)
CMYKcmyk(0%, 70.4%, 21.4%, 37.6%)
CIE-LABlab(39.39, 53.70, -19.13)
CIE-LCHlch(39.39, 57.00, 340.39°)
OKLaboklab(49.98% 0.1611 -0.0513)
OKLCHoklch(49.98% 0.169 342.3)
XYZxyz(19.0169, 10.8865, 20.4978)
Luminance0.1089 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2F7D #2F9F51
analogous
#892F9F #9F2F7D #9F2F45
triadic
#9F2F7D #7D9F2F #2F7D9F
tetradic
#9F2F7D #9F892F #2F9F51 #2F459F
square
#9F2F7D #9F892F #2F9F51 #2F459F
split-complementary
#9F2F7D #459F2F #2F9F89
monochromatic
#411333 #702158 #9F2F7D #C844A0 #D673B8

Accessibility & contrast

On white

6.61
#9F2F7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9F2F7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2F7D
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2F7D#FFFFFF#000000##FFFFFF
##9F2F7D1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39517F
Deuteranopia (green-blind)
#5B637A
Tritanopia (blue-blind)
#A93052
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f2f7d;
/* rgb */ color: rgb(159, 47, 125);
/* oklch */ color: oklch(50.0% 0.169 342.3);
Tailwind
colors: {
  custom: {
    50: '#bf71a2',
    500: '#9f2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #9f2f7d;
$custom-light: #bf71a2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2f7d",
  "rgb": {
    "r": 159,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 318.214,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4998,
    "c": 0.16901,
    "h": 342.3
  },
  "luminance": 0.10885
}

Semantic roles & 50–950 ramp

primary
#9F2F7D
secondary
#6DBD85
accent
#DE774A
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #9F2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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