#8F227B#8F227B

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

Color values

HEX#8F227B
RGBrgb(143, 34, 123)
HSLhsl(311, 62%, 35%)
HSVhsv(311, 76%, 56%)
CMYKcmyk(0%, 76.2%, 14%, 43.9%)
CIE-LABlab(34.83, 53.92, -25.18)
CIE-LCHlch(34.83, 59.50, 334.97°)
OKLaboklab(46.11% 0.1586 -0.0686)
OKLCHoklch(46.11% 0.173 336.6)
XYZxyz(15.4751, 8.4152, 19.5443)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F227B #228F36
analogous
#6D228F #8F227B #8F2245
triadic
#8F227B #7B8F22 #227B8F
tetradic
#8F227B #8F6D22 #228F36 #22458F
square
#8F227B #8F6D22 #228F36 #22458F
split-complementary
#8F227B #458F22 #228F6D
monochromatic
#2C0A26 #5E1650 #8F227B #C02EA6 #D755BF

Accessibility & contrast

On white

7.83
#8F227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F227B
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F227B#FFFFFF#000000##FFFFFF
##8F227B1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f227b;
/* rgb */ color: rgb(143, 34, 123);
/* oklch */ color: oklch(46.1% 0.173 336.6);
Tailwind
colors: {
  custom: {
    50: '#b369a1',
    500: '#8f227b',
    950: '#000000',
  },
}
SCSS
$custom: #8f227b;
$custom-light: #b369a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f227b",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 311.009,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46111,
    "c": 0.17277,
    "h": 336.6
  },
  "luminance": 0.08414
}

Semantic roles & 50–950 ramp

primary
#8F227B
secondary
#52BA65
accent
#E56143
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8F227B

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

Preview Lab → · Contrast checker → · Palette generator →

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