#8C2158#8C2158

#8C2158 is a dark, vivid pink. Relative luminance 0.074; OKLCH L 43.9% C 0.151 H 353.9°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#8C2158
RGBrgb(140, 33, 88)
HSLhsl(329, 62%, 34%)
HSVhsv(329, 76%, 55%)
CMYKcmyk(0%, 76.4%, 37.1%, 45.1%)
CIE-LABlab(32.63, 48.79, -6.27)
CIE-LCHlch(32.63, 49.19, 352.68°)
OKLaboklab(43.91% 0.1497 -0.016)
OKLCHoklch(43.91% 0.151 353.9)
XYZxyz(13.1214, 7.3693, 9.9621)
Luminance0.0737 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2158 #218C55
analogous
#8B218C #8C2158 #8C2122
triadic
#8C2158 #588C21 #21588C
tetradic
#8C2158 #8C8B21 #218C55 #21228C
square
#8C2158 #8C8B21 #218C55 #21228C
split-complementary
#8C2158 #228C21 #218C8B
monochromatic
#290A1A #5A1539 #8C2158 #BE2D77 #D65196

Accessibility & contrast

On white

8.49
#8C2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#8C2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2158
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2158#FFFFFF#000000##FFFFFF
##8C21581.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354059
Deuteranopia (green-blind)
#535456
Tritanopia (blue-blind)
#971639
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8c2158;
/* rgb */ color: rgb(140, 33, 88);
/* oklch */ color: oklch(43.9% 0.151 353.9);
Tailwind
colors: {
  custom: {
    50: '#b26787',
    500: '#8c2158',
    950: '#000000',
  },
}
SCSS
$custom: #8c2158;
$custom-light: #b26787;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2158",
  "rgb": {
    "r": 140,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 329.159,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43911,
    "c": 0.15053,
    "h": 353.9
  },
  "luminance": 0.07368
}

Semantic roles & 50–950 ramp

primary
#8C2158
secondary
#4FB983
accent
#E59243
background
#FBF6F8
surface
#F6EBEF
border
#D0C6CA
text
#11070B
muted
#807A7C

Preview Lab

Preview with #8C2158

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

Preview Lab → · Contrast checker → · Palette generator →

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