#8F2178#8F2178

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

Color values

HEX#8F2178
RGBrgb(143, 33, 120)
HSLhsl(313, 63%, 35%)
HSVhsv(313, 77%, 56%)
CMYKcmyk(0%, 76.9%, 16.1%, 43.9%)
CIE-LABlab(34.57, 53.79, -23.71)
CIE-LCHlch(34.57, 58.79, 336.22°)
OKLaboklab(45.87% 0.1592 -0.0644)
OKLCHoklch(45.87% 0.172 338)
XYZxyz(15.2621, 8.2849, 18.5610)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2178 #218F38
analogous
#6F218F #8F2178 #8F2141
triadic
#8F2178 #788F21 #21788F
tetradic
#8F2178 #8F6F21 #218F38 #21418F
square
#8F2178 #8F6F21 #218F38 #21418F
split-complementary
#8F2178 #418F21 #218F6F
monochromatic
#2C0A25 #5D164E #8F2178 #C12CA2 #D753BC

Accessibility & contrast

On white

7.90
#8F2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F2178
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2178#FFFFFF#000000##FFFFFF
##8F21781.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f2178;
/* rgb */ color: rgb(143, 33, 120);
/* oklch */ color: oklch(45.9% 0.172 338.0);
Tailwind
colors: {
  custom: {
    50: '#b3699f',
    500: '#8f2178',
    950: '#000000',
  },
}
SCSS
$custom: #8f2178;
$custom-light: #b3699f;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2178",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 312.545,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45872,
    "c": 0.17175,
    "h": 338
  },
  "luminance": 0.08283
}

Semantic roles & 50–950 ramp

primary
#8F2178
secondary
#51BB67
accent
#E66442
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8F2178

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

Preview Lab → · Contrast checker → · Palette generator →

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