#8C2178#8C2178

#8C2178 is a mid, vivid pink. Relative luminance 0.080; OKLCH L 45.4% C 0.170 H 336.8°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#8C2178
RGBrgb(140, 33, 120)
HSLhsl(311, 62%, 34%)
HSVhsv(311, 76%, 55%)
CMYKcmyk(0%, 76.4%, 14.3%, 45.1%)
CIE-LABlab(34.03, 53.06, -24.60)
CIE-LCHlch(34.03, 58.48, 335.13°)
OKLaboklab(45.38% 0.1562 -0.067)
OKLCHoklch(45.38% 0.17 336.8)
XYZxyz(14.7495, 8.0206, 18.5370)
Luminance0.0802 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2178 #218C35
analogous
#6B218C #8C2178 #8C2143
triadic
#8C2178 #788C21 #21788C
tetradic
#8C2178 #8C6B21 #218C35 #21438C
square
#8C2178 #8C6B21 #218C35 #21438C
split-complementary
#8C2178 #438C21 #218C6B
monochromatic
#290A23 #5A154E #8C2178 #BE2DA2 #D651BD

Accessibility & contrast

On white

8.07
#8C2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8C2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2178
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2178#FFFFFF#000000##FFFFFF
##8C21781.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24467A
Deuteranopia (green-blind)
#495676
Tritanopia (blue-blind)
#94284A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8c2178;
/* rgb */ color: rgb(140, 33, 120);
/* oklch */ color: oklch(45.4% 0.170 336.8);
Tailwind
colors: {
  custom: {
    50: '#b1689f',
    500: '#8c2178',
    950: '#000000',
  },
}
SCSS
$custom: #8c2178;
$custom-light: #b1689f;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2178",
  "rgb": {
    "r": 140,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 311.215,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45378,
    "c": 0.16994,
    "h": 336.8
  },
  "luminance": 0.08019
}

Semantic roles & 50–950 ramp

primary
#8C2178
secondary
#4FB963
accent
#E56143
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8C2178

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

Preview Lab → · Contrast checker → · Palette generator →

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