#8C2F4E#8C2F4E

#8C2F4E is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.0% C 0.129 H 3.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8C2F4E
RGBrgb(140, 47, 78)
HSLhsl(340, 50%, 37%)
HSVhsv(340, 66%, 55%)
CMYKcmyk(0%, 66.4%, 44.3%, 45.1%)
CIE-LABlab(34.31, 42.11, 2.68)
CIE-LCHlch(34.31, 42.19, 3.65°)
OKLaboklab(45.04% 0.1286 0.0074)
OKLCHoklch(45.04% 0.129 3.3)
XYZxyz(13.2078, 8.1601, 8.0858)
Luminance0.0816 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2F4E #2F8C6D
analogous
#8C2F7D #8C2F4E #8C3F2F
triadic
#8C2F4E #4E8C2F #2F4E8C
tetradic
#8C2F4E #7D8C2F #2F8C6D #3F2F8C
square
#8C2F4E #7D8C2F #2F8C6D #3F2F8C
split-complementary
#8C2F4E #2F8C3F #2F7D8C
monochromatic
#30101B #5E2034 #8C2F4E #BA3E68 #CD698A

Accessibility & contrast

On white

7.98
#8C2F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8C2F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2F4E
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2F4E#FFFFFF#000000##FFFFFF
##8C2F4E1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42454F
Deuteranopia (green-blind)
#5B574C
Tritanopia (blue-blind)
#98233B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8c2f4e;
/* rgb */ color: rgb(140, 47, 78);
/* oklch */ color: oklch(45.0% 0.129 3.3);
Tailwind
colors: {
  custom: {
    50: '#b26d7f',
    500: '#8c2f4e',
    950: '#000000',
  },
}
SCSS
$custom: #8c2f4e;
$custom-light: #b26d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2f4e",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 78
  },
  "hsl": {
    "h": 340,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45044,
    "c": 0.12883,
    "h": 3.3
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#8C2F4E
secondary
#63B499
accent
#D9AB4F
background
#FBF6F7
surface
#F6ECEE
border
#D0C7C9
text
#11070A
muted
#807A7C

Preview Lab

Preview with #8C2F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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