#8A1840#8A1840

#8A1840 is a dark, vivid pink. Relative luminance 0.064; OKLCH L 42.0% C 0.150 H 6.3°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#8A1840
RGBrgb(138, 24, 64)
HSLhsl(339, 70%, 32%)
HSVhsv(339, 83%, 54%)
CMYKcmyk(0%, 82.6%, 53.6%, 45.9%)
CIE-LABlab(30.47, 48.67, 6.31)
CIE-LCHlch(30.47, 49.08, 7.39°)
OKLaboklab(42% 0.1487 0.0164)
OKLCHoklch(42% 0.15 6.3)
XYZxyz(11.7344, 6.4284, 5.4724)
Luminance0.0643 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1840 #188A62
analogous
#8A1879 #8A1840 #8A2918
triadic
#8A1840 #408A18 #18408A
tetradic
#8A1840 #798A18 #188A62 #29188A
square
#8A1840 #798A18 #188A62 #29188A
split-complementary
#8A1840 #188A29 #18798A
monochromatic
#220610 #560F28 #8A1840 #BE2158 #DE3F77

Accessibility & contrast

On white

9.19
#8A1840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#8A1840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1840
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1840#FFFFFF#000000##FFFFFF
##8A18401.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373941
Deuteranopia (green-blind)
#54503D
Tritanopia (blue-blind)
#97002A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8a1840;
/* rgb */ color: rgb(138, 24, 64);
/* oklch */ color: oklch(42.0% 0.150 6.3);
Tailwind
colors: {
  custom: {
    50: '#b26274',
    500: '#8a1840',
    950: '#000000',
  },
}
SCSS
$custom: #8a1840;
$custom-light: #b26274;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1840",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 338.947,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42,
    "c": 0.14958,
    "h": 6.3
  },
  "luminance": 0.06427
}

Semantic roles & 50–950 ramp

primary
#8A1840
secondary
#40BD92
accent
#EDAF3B
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1840

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

Preview Lab → · Contrast checker → · Palette generator →

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