#8A1C40#8A1C40

#8A1C40 is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.3% C 0.146 H 7.0°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#8A1C40
RGBrgb(138, 28, 64)
HSLhsl(340, 66%, 33%)
HSVhsv(340, 80%, 54%)
CMYKcmyk(0%, 79.7%, 53.6%, 45.9%)
CIE-LABlab(30.89, 47.47, 6.91)
CIE-LCHlch(30.89, 47.97, 8.28°)
OKLaboklab(42.31% 0.1448 0.0178)
OKLCHoklch(42.31% 0.146 7)
XYZxyz(11.8230, 6.6056, 5.5019)
Luminance0.0660 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C40 #1C8A66
analogous
#8A1C77 #8A1C40 #8A2F1C
triadic
#8A1C40 #408A1C #1C408A
tetradic
#8A1C40 #778A1C #1C8A66 #2F1C8A
square
#8A1C40 #778A1C #1C8A66 #2F1C8A
split-complementary
#8A1C40 #1C8A2F #1C778A
monochromatic
#240711 #571228 #8A1C40 #BD2658 #DA4777

Accessibility & contrast

On white

9.05
#8A1C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#8A1C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C40
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C40#FFFFFF#000000##FFFFFF
##8A1C401.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393B41
Deuteranopia (green-blind)
#55513D
Tritanopia (blue-blind)
#97002C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8a1c40;
/* rgb */ color: rgb(138, 28, 64);
/* oklch */ color: oklch(42.3% 0.146 7.0);
Tailwind
colors: {
  custom: {
    50: '#b26474',
    500: '#8a1c40',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c40;
$custom-light: #b26474;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c40",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 64
  },
  "hsl": {
    "h": 340.364,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42312,
    "c": 0.14589,
    "h": 7
  },
  "luminance": 0.06604
}

Semantic roles & 50–950 ramp

primary
#8A1C40
secondary
#46BB95
accent
#E9B13F
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1C40

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

Preview Lab → · Contrast checker → · Palette generator →

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