#8F2771#8F2771

#8F2771 is a mid, vivid pink. Relative luminance 0.085; OKLCH L 46.1% C 0.160 H 341.7°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#8F2771
RGBrgb(143, 39, 113)
HSLhsl(317, 57%, 36%)
HSVhsv(317, 73%, 56%)
CMYKcmyk(0%, 72.7%, 21%, 43.9%)
CIE-LABlab(34.97, 50.70, -18.67)
CIE-LCHlch(34.97, 54.03, 339.78°)
OKLaboklab(46.06% 0.1519 -0.0501)
OKLCHoklch(46.06% 0.16 341.7)
XYZxyz(15.0343, 8.4844, 16.4655)
Luminance0.0848 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2771 #278F45
analogous
#79278F #8F2771 #8F273D
triadic
#8F2771 #718F27 #27718F
tetradic
#8F2771 #8F7927 #278F45 #273D8F
square
#8F2771 #8F7927 #278F45 #273D8F
split-complementary
#8F2771 #3D8F27 #278F79
monochromatic
#2F0D25 #5F1A4B #8F2771 #BF3497 #D35DB1

Accessibility & contrast

On white

7.79
#8F2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8F2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2771
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2771#FFFFFF#000000##FFFFFF
##8F27711.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304773
Deuteranopia (green-blind)
#50586F
Tritanopia (blue-blind)
#982948
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f2771;
/* rgb */ color: rgb(143, 39, 113);
/* oklch */ color: oklch(46.1% 0.160 341.7);
Tailwind
colors: {
  custom: {
    50: '#b36b9a',
    500: '#8f2771',
    950: '#000000',
  },
}
SCSS
$custom: #8f2771;
$custom-light: #b36b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2771",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 317.308,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46056,
    "c": 0.15996,
    "h": 341.7
  },
  "luminance": 0.08483
}

Semantic roles & 50–950 ramp

primary
#8F2771
secondary
#5AB875
accent
#E07447
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8F2771

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

Preview Lab → · Contrast checker → · Palette generator →

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