#9F2771#9F2771

#9F2771 is a mid, vivid pink. Relative luminance 0.100; OKLCH L 48.7% C 0.171 H 347.6°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#9F2771
RGBrgb(159, 39, 113)
HSLhsl(323, 61%, 39%)
HSVhsv(323, 75%, 62%)
CMYKcmyk(0%, 75.5%, 28.9%, 37.6%)
CIE-LABlab(37.87, 54.95, -13.97)
CIE-LCHlch(37.87, 56.70, 345.74°)
OKLaboklab(48.71% 0.1673 -0.0368)
OKLCHoklch(48.71% 0.171 347.6)
XYZxyz(18.0051, 10.0162, 16.6047)
Luminance0.1001 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2771 #279F55
analogous
#91279F #9F2771 #9F2735
triadic
#9F2771 #719F27 #27719F
tetradic
#9F2771 #9F9127 #279F55 #27359F
square
#9F2771 #9F9127 #279F55 #27359F
split-complementary
#9F2771 #359F27 #279F91
monochromatic
#3D0F2B #6E1B4E #9F2771 #CE3693 #DA67AE

Accessibility & contrast

On white

6.99
#9F2771 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#9F2771 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2771
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2771#FFFFFF#000000##FFFFFF
##9F27711.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394C73
Deuteranopia (green-blind)
#5C616E
Tritanopia (blue-blind)
#AA2249
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f2771;
/* rgb */ color: rgb(159, 39, 113);
/* oklch */ color: oklch(48.7% 0.171 347.6);
Tailwind
colors: {
  custom: {
    50: '#bf6d9a',
    500: '#9f2771',
    950: '#000000',
  },
}
SCSS
$custom: #9f2771;
$custom-light: #bf6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2771",
  "rgb": {
    "r": 159,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 323,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4871,
    "c": 0.17133,
    "h": 347.6
  },
  "luminance": 0.10014
}

Semantic roles & 50–950 ramp

primary
#9F2771
secondary
#62C086
accent
#E48144
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #9F2771

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

Preview Lab → · Contrast checker → · Palette generator →

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