#8F2277#8F2277

#8F2277 is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.9% C 0.170 H 338.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#8F2277
RGBrgb(143, 34, 119)
HSLhsl(313, 62%, 35%)
HSVhsv(313, 76%, 56%)
CMYKcmyk(0%, 76.2%, 16.8%, 43.9%)
CIE-LABlab(34.63, 53.32, -22.98)
CIE-LCHlch(34.63, 58.06, 336.69°)
OKLaboklab(45.9% 0.1581 -0.0623)
OKLCHoklch(45.9% 0.17 338.5)
XYZxyz(15.2299, 8.3171, 18.2525)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2277 #228F3A
analogous
#71228F #8F2277 #8F2241
triadic
#8F2277 #778F22 #22778F
tetradic
#8F2277 #8F7122 #228F3A #22418F
square
#8F2277 #8F7122 #228F3A #22418F
split-complementary
#8F2277 #418F22 #228F71
monochromatic
#2C0A25 #5E164E #8F2277 #C02EA0 #D755BA

Accessibility & contrast

On white

7.89
#8F2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8F2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2277
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2277#FFFFFF#000000##FFFFFF
##8F22771.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284779
Deuteranopia (green-blind)
#4C5774
Tritanopia (blue-blind)
#97274A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f2277;
/* rgb */ color: rgb(143, 34, 119);
/* oklch */ color: oklch(45.9% 0.170 338.5);
Tailwind
colors: {
  custom: {
    50: '#b3699e',
    500: '#8f2277',
    950: '#000000',
  },
}
SCSS
$custom: #8f2277;
$custom-light: #b3699e;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2277",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 313.211,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45903,
    "c": 0.16996,
    "h": 338.5
  },
  "luminance": 0.08316
}

Semantic roles & 50–950 ramp

primary
#8F2277
secondary
#52BA69
accent
#E56743
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8F2277

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

Preview Lab → · Contrast checker → · Palette generator →

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