#8F277B#8F277B

#8F277B is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.6% C 0.167 H 336.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#8F277B
RGBrgb(143, 39, 123)
HSLhsl(312, 57%, 36%)
HSVhsv(312, 73%, 56%)
CMYKcmyk(0%, 72.7%, 14%, 43.9%)
CIE-LABlab(35.44, 52.18, -24.22)
CIE-LCHlch(35.44, 57.53, 335.10°)
OKLaboklab(46.55% 0.1534 -0.0659)
OKLCHoklch(46.55% 0.167 336.8)
XYZxyz(15.6286, 8.7221, 19.5955)
Luminance0.0872 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F277B #278F3B
analogous
#6F278F #8F277B #8F2747
triadic
#8F277B #7B8F27 #277B8F
tetradic
#8F277B #8F6F27 #278F3B #27478F
square
#8F277B #8F6F27 #278F3B #27478F
split-complementary
#8F277B #478F27 #278F6F
monochromatic
#2F0D28 #5F1A52 #8F277B #BF34A4 #D35DBC

Accessibility & contrast

On white

7.65
#8F277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F277B
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F277B#FFFFFF#000000##FFFFFF
##8F277B1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29497D
Deuteranopia (green-blind)
#4C5979
Tritanopia (blue-blind)
#972D4E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8f277b;
/* rgb */ color: rgb(143, 39, 123);
/* oklch */ color: oklch(46.6% 0.167 336.8);
Tailwind
colors: {
  custom: {
    50: '#b36ba1',
    500: '#8f277b',
    950: '#000000',
  },
}
SCSS
$custom: #8f277b;
$custom-light: #b36ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f277b",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 311.538,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46552,
    "c": 0.16696,
    "h": 336.8
  },
  "luminance": 0.08721
}

Semantic roles & 50–950 ramp

primary
#8F277B
secondary
#5AB86C
accent
#E06547
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8F277B

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

Preview Lab → · Contrast checker → · Palette generator →

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