#8B2178#8B2178

#8B2178 is a mid, vivid pink. Relative luminance 0.079; OKLCH L 45.2% C 0.169 H 336.4°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#8B2178
RGBrgb(139, 33, 120)
HSLhsl(311, 62%, 34%)
HSVhsv(311, 76%, 55%)
CMYKcmyk(0%, 76.3%, 13.7%, 45.5%)
CIE-LABlab(33.85, 52.82, -24.89)
CIE-LCHlch(33.85, 58.39, 334.77°)
OKLaboklab(45.21% 0.1552 -0.0678)
OKLCHoklch(45.21% 0.169 336.4)
XYZxyz(14.5817, 7.9341, 18.5291)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2178 #218B34
analogous
#69218B #8B2178 #8B2143
triadic
#8B2178 #788B21 #21788B
tetradic
#8B2178 #8B6921 #218B34 #21438B
square
#8B2178 #8B6921 #218B34 #21438B
split-complementary
#8B2178 #438B21 #218B69
monochromatic
#280A23 #5A154D #8B2178 #BC2DA3 #D651BE

Accessibility & contrast

On white

8.12
#8B2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8B2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2178
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2178#FFFFFF#000000##FFFFFF
##8B21781.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23457A
Deuteranopia (green-blind)
#485576
Tritanopia (blue-blind)
#92284A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b2178;
/* rgb */ color: rgb(139, 33, 120);
/* oklch */ color: oklch(45.2% 0.169 336.4);
Tailwind
colors: {
  custom: {
    50: '#b0689f',
    500: '#8b2178',
    950: '#000000',
  },
}
SCSS
$custom: #8b2178;
$custom-light: #b0689f;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2178",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 310.755,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45213,
    "c": 0.16935,
    "h": 336.4
  },
  "luminance": 0.07933
}

Semantic roles & 50–950 ramp

primary
#8B2178
secondary
#4FB962
accent
#E56043
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8B2178

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

Preview Lab → · Contrast checker → · Palette generator →

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