#8C124E#8C124E

#8C124E is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.4% C 0.160 H 357.9°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#8C124E
RGBrgb(140, 18, 78)
HSLhsl(330, 77%, 31%)
HSVhsv(330, 87%, 55%)
CMYKcmyk(0%, 87.1%, 44.3%, 45.1%)
CIE-LABlab(30.78, 51.99, -2.47)
CIE-LCHlch(30.78, 52.05, 357.28°)
OKLaboklab(42.44% 0.1602 -0.0058)
OKLCHoklch(42.44% 0.16 357.9)
XYZxyz(12.4077, 6.5598, 7.8191)
Luminance0.0656 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C124E #128C50
analogous
#8C128B #8C124E #8C1312
triadic
#8C124E #4E8C12 #124E8C
tetradic
#8C124E #8B8C12 #128C50 #13128C
square
#8C124E #8B8C12 #128C50 #13128C
split-complementary
#8C124E #128C13 #128B8C
monochromatic
#200412 #560B30 #8C124E #C2196C #E5348B

Accessibility & contrast

On white

9.08
#8C124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#8C124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C124E
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C124E#FFFFFF#000000##FFFFFF
##8C124E1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313A4F
Deuteranopia (green-blind)
#52504B
Tritanopia (blue-blind)
#98002F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8c124e;
/* rgb */ color: rgb(140, 18, 78);
/* oklch */ color: oklch(42.4% 0.160 357.9);
Tailwind
colors: {
  custom: {
    50: '#b3617f',
    500: '#8c124e',
    950: '#000000',
  },
}
SCSS
$custom: #8c124e;
$custom-light: #b3617f;
$custom-dark: #000000;
JSON
{
  "hex": "#8c124e",
  "rgb": {
    "r": 140,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 330.492,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42444,
    "c": 0.1603,
    "h": 357.9
  },
  "luminance": 0.06558
}

Semantic roles & 50–950 ramp

primary
#8C124E
secondary
#39C07E
accent
#F49534
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#12060A
muted
#817A7C

Preview Lab

Preview with #8C124E

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

Preview Lab → · Contrast checker → · Palette generator →

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