#8F227C#8F227C

#8F227C is a mid, vivid pink. Relative luminance 0.084; OKLCH L 46.2% C 0.173 H 336.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#8F227C
RGBrgb(143, 34, 124)
HSLhsl(310, 62%, 35%)
HSVhsv(310, 76%, 56%)
CMYKcmyk(0%, 76.2%, 13.3%, 43.9%)
CIE-LABlab(34.88, 54.07, -25.72)
CIE-LCHlch(34.88, 59.88, 334.56°)
OKLaboklab(46.16% 0.1587 -0.0701)
OKLCHoklch(46.16% 0.173 336.2)
XYZxyz(15.5381, 8.4404, 19.8757)
Luminance0.0844 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F227C #228F35
analogous
#6C228F #8F227C #8F2245
triadic
#8F227C #7C8F22 #227C8F
tetradic
#8F227C #8F6C22 #228F35 #22458F
square
#8F227C #8F6C22 #228F35 #22458F
split-complementary
#8F227C #458F22 #228F6C
monochromatic
#2C0A26 #5E1651 #8F227C #C02EA7 #D755C0

Accessibility & contrast

On white

7.81
#8F227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8F227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F227C
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F227C#FFFFFF#000000##FFFFFF
##8F227C1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487E
Deuteranopia (green-blind)
#4A5879
Tritanopia (blue-blind)
#972A4D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f227c;
/* rgb */ color: rgb(143, 34, 124);
/* oklch */ color: oklch(46.2% 0.173 336.2);
Tailwind
colors: {
  custom: {
    50: '#b369a2',
    500: '#8f227c',
    950: '#000000',
  },
}
SCSS
$custom: #8f227c;
$custom-light: #b369a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f227c",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 310.459,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46164,
    "c": 0.17349,
    "h": 336.2
  },
  "luminance": 0.08439
}

Semantic roles & 50–950 ramp

primary
#8F227C
secondary
#52BA65
accent
#E55F43
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F227C

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

Preview Lab → · Contrast checker → · Palette generator →

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