#9F2271#9F2271

#9F2271 is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.3% C 0.177 H 347.2°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#9F2271
RGBrgb(159, 34, 113)
HSLhsl(322, 65%, 38%)
HSVhsv(322, 79%, 62%)
CMYKcmyk(0%, 78.6%, 28.9%, 37.6%)
CIE-LABlab(37.32, 56.53, -14.82)
CIE-LCHlch(37.32, 58.44, 345.31°)
OKLaboklab(48.31% 0.1722 -0.0391)
OKLCHoklch(48.31% 0.177 347.2)
XYZxyz(17.8516, 9.7093, 16.5536)
Luminance0.0971 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2271 #229F50
analogous
#8E229F #9F2271 #9F2232
triadic
#9F2271 #719F22 #22719F
tetradic
#9F2271 #9F8E22 #229F50 #22329F
square
#9F2271 #9F8E22 #229F50 #22329F
split-complementary
#9F2271 #329F22 #229F8E
monochromatic
#3A0C29 #6D174D #9F2271 #D12D95 #DD5FAE

Accessibility & contrast

On white

7.14
#9F2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#9F2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F2271
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2271#FFFFFF#000000##FFFFFF
##9F22711.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f2271;
/* rgb */ color: rgb(159, 34, 113);
/* oklch */ color: oklch(48.3% 0.177 347.2);
Tailwind
colors: {
  custom: {
    50: '#c06b9a',
    500: '#9f2271',
    950: '#000000',
  },
}
SCSS
$custom: #9f2271;
$custom-light: #c06b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2271",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 322.08,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48306,
    "c": 0.17664,
    "h": 347.2
  },
  "luminance": 0.09707
}

Semantic roles & 50–950 ramp

primary
#9F2271
secondary
#5BC181
accent
#E87E40
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070E
muted
#827A7E

Preview Lab

Preview with #9F2271

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

Preview Lab → · Contrast checker → · Palette generator →

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