#8F2172#8F2172

#8F2172 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.6% C 0.168 H 340.9°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8F2172
RGBrgb(143, 33, 114)
HSLhsl(316, 63%, 35%)
HSVhsv(316, 77%, 56%)
CMYKcmyk(0%, 76.9%, 20.3%, 43.9%)
CIE-LABlab(34.28, 52.93, -20.37)
CIE-LCHlch(34.28, 56.71, 338.95°)
OKLaboklab(45.57% 0.1584 -0.0549)
OKLCHoklch(45.57% 0.168 340.9)
XYZxyz(14.9093, 8.1438, 16.7030)
Luminance0.0814 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2172 #218F3E
analogous
#75218F #8F2172 #8F213B
triadic
#8F2172 #728F21 #21728F
tetradic
#8F2172 #8F7521 #218F3E #213B8F
square
#8F2172 #8F7521 #218F3E #213B8F
split-complementary
#8F2172 #3B8F21 #218F75
monochromatic
#2C0A23 #5D164A #8F2172 #C12C9A #D753B4

Accessibility & contrast

On white

7.99
#8F2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8F2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2172
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2172#FFFFFF#000000##FFFFFF
##8F21721.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4574
Deuteranopia (green-blind)
#4E576F
Tritanopia (blue-blind)
#982447
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f2172;
/* rgb */ color: rgb(143, 33, 114);
/* oklch */ color: oklch(45.6% 0.168 340.9);
Tailwind
colors: {
  custom: {
    50: '#b3689a',
    500: '#8f2172',
    950: '#000000',
  },
}
SCSS
$custom: #8f2172;
$custom-light: #b3689a;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2172",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 315.818,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45569,
    "c": 0.16766,
    "h": 340.9
  },
  "luminance": 0.08142
}

Semantic roles & 50–950 ramp

primary
#8F2172
secondary
#51BB6D
accent
#E66D42
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8F2172

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

Preview Lab → · Contrast checker → · Palette generator →

#8F2172 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva