#8F227A#8F227A

#8F227A is a mid, vivid pink. Relative luminance 0.084; OKLCH L 46.1% C 0.172 H 337.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#8F227A
RGBrgb(143, 34, 122)
HSLhsl(312, 62%, 35%)
HSVhsv(312, 76%, 56%)
CMYKcmyk(0%, 76.2%, 14.7%, 43.9%)
CIE-LABlab(34.78, 53.77, -24.63)
CIE-LCHlch(34.78, 59.14, 335.39°)
OKLaboklab(46.06% 0.1585 -0.067)
OKLCHoklch(46.06% 0.172 337.1)
XYZxyz(15.4129, 8.3903, 19.2163)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F227A #228F37
analogous
#6E228F #8F227A #8F2243
triadic
#8F227A #7A8F22 #227A8F
tetradic
#8F227A #8F6E22 #228F37 #22438F
square
#8F227A #8F6E22 #228F37 #22438F
split-complementary
#8F227A #438F22 #228F6E
monochromatic
#2C0A26 #5E1650 #8F227A #C02EA4 #D755BE

Accessibility & contrast

On white

7.84
#8F227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8F227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F227A
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F227A#FFFFFF#000000##FFFFFF
##8F227A1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25477C
Deuteranopia (green-blind)
#4B5877
Tritanopia (blue-blind)
#97294C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f227a;
/* rgb */ color: rgb(143, 34, 122);
/* oklch */ color: oklch(46.1% 0.172 337.1);
Tailwind
colors: {
  custom: {
    50: '#b369a0',
    500: '#8f227a',
    950: '#000000',
  },
}
SCSS
$custom: #8f227a;
$custom-light: #b369a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f227a",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 311.56,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46058,
    "c": 0.17205,
    "h": 337.1
  },
  "luminance": 0.08389
}

Semantic roles & 50–950 ramp

primary
#8F227A
secondary
#52BA66
accent
#E56243
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8F227A

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

Preview Lab → · Contrast checker → · Palette generator →

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