#9F2171#9F2171

#9F2171 is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.2% C 0.178 H 347.1°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#9F2171
RGBrgb(159, 33, 113)
HSLhsl(322, 66%, 38%)
HSVhsv(322, 79%, 62%)
CMYKcmyk(0%, 79.2%, 28.9%, 37.6%)
CIE-LABlab(37.21, 56.83, -14.98)
CIE-LCHlch(37.21, 58.77, 345.23°)
OKLaboklab(48.23% 0.1732 -0.0396)
OKLCHoklch(48.23% 0.178 347.1)
XYZxyz(17.8235, 9.6529, 16.5442)
Luminance0.0965 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2171 #219F4F
analogous
#8E219F #9F2171 #9F2132
triadic
#9F2171 #719F21 #21719F
tetradic
#9F2171 #9F8E21 #219F4F #21329F
square
#9F2171 #9F8E21 #219F4F #21329F
split-complementary
#9F2171 #329F21 #219F8E
monochromatic
#3A0C29 #6C164D #9F2171 #D22C95 #DD5DAF

Accessibility & contrast

On white

7.17
#9F2171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#9F2171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F2171
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2171#FFFFFF#000000##FFFFFF
##9F21711.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354A73
Deuteranopia (green-blind)
#5A5F6E
Tritanopia (blue-blind)
#AB1C47
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9f2171;
/* rgb */ color: rgb(159, 33, 113);
/* oklch */ color: oklch(48.2% 0.178 347.1);
Tailwind
colors: {
  custom: {
    50: '#c06b9a',
    500: '#9f2171',
    950: '#000000',
  },
}
SCSS
$custom: #9f2171;
$custom-light: #c06b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2171",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 321.905,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48231,
    "c": 0.17764,
    "h": 347.1
  },
  "luminance": 0.09651
}

Semantic roles & 50–950 ramp

primary
#9F2171
secondary
#5AC280
accent
#E97D3F
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070E
muted
#827A7E

Preview Lab

Preview with #9F2171

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

Preview Lab → · Contrast checker → · Palette generator →

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