#8F277A#8F277A

#8F277A is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.5% C 0.166 H 337.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#8F277A
RGBrgb(143, 39, 122)
HSLhsl(312, 57%, 36%)
HSVhsv(312, 73%, 56%)
CMYKcmyk(0%, 72.7%, 14.7%, 43.9%)
CIE-LABlab(35.39, 52.03, -23.67)
CIE-LCHlch(35.39, 57.16, 335.54°)
OKLaboklab(46.5% 0.1533 -0.0643)
OKLCHoklch(46.5% 0.166 337.2)
XYZxyz(15.5663, 8.6972, 19.2675)
Luminance0.0870 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F277A #278F3C
analogous
#70278F #8F277A #8F2746
triadic
#8F277A #7A8F27 #277A8F
tetradic
#8F277A #8F7027 #278F3C #27468F
square
#8F277A #8F7027 #278F3C #27468F
split-complementary
#8F277A #468F27 #278F70
monochromatic
#2F0D28 #5F1A51 #8F277A #BF34A3 #D35DBB

Accessibility & contrast

On white

7.67
#8F277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8F277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F277A
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F277A#FFFFFF#000000##FFFFFF
##8F277A1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A497C
Deuteranopia (green-blind)
#4D5978
Tritanopia (blue-blind)
#972D4D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8f277a;
/* rgb */ color: rgb(143, 39, 122);
/* oklch */ color: oklch(46.5% 0.166 337.2);
Tailwind
colors: {
  custom: {
    50: '#b36ba0',
    500: '#8f277a',
    950: '#000000',
  },
}
SCSS
$custom: #8f277a;
$custom-light: #b36ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f277a",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 312.115,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.465,
    "c": 0.16624,
    "h": 337.2
  },
  "luminance": 0.08696
}

Semantic roles & 50–950 ramp

primary
#8F277A
secondary
#5AB86D
accent
#E06647
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8F277A

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

Preview Lab → · Contrast checker → · Palette generator →

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