#8A1240#8A1240

#8A1240 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.6% C 0.154 H 5.4°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#8A1240
RGBrgb(138, 18, 64)
HSLhsl(337, 77%, 31%)
HSVhsv(337, 87%, 54%)
CMYKcmyk(0%, 87%, 53.6%, 45.9%)
CIE-LABlab(29.93, 50.21, 5.55)
CIE-LCHlch(29.93, 50.52, 6.31°)
OKLaboklab(41.61% 0.1537 0.0145)
OKLCHoklch(41.61% 0.154 5.4)
XYZxyz(11.6241, 6.2077, 5.4356)
Luminance0.0621 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1240 #128A5C
analogous
#8A127C #8A1240 #8A2012
triadic
#8A1240 #408A12 #12408A
tetradic
#8A1240 #7C8A12 #128A5C #20128A
square
#8A1240 #7C8A12 #128A5C #20128A
split-complementary
#8A1240 #128A20 #127C8A
monochromatic
#1E040E #540B27 #8A1240 #C01959 #E43276

Accessibility & contrast

On white

9.37
#8A1240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#8A1240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1240
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1240#FFFFFF#000000##FFFFFF
##8A12401.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#343841
Deuteranopia (green-blind)
#534F3D
Tritanopia (blue-blind)
#970028
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #8a1240;
/* rgb */ color: rgb(138, 18, 64);
/* oklch */ color: oklch(41.6% 0.154 5.4);
Tailwind
colors: {
  custom: {
    50: '#b26174',
    500: '#8a1240',
    950: '#000000',
  },
}
SCSS
$custom: #8a1240;
$custom-light: #b26174;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1240",
  "rgb": {
    "r": 138,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 337,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41606,
    "c": 0.15433,
    "h": 5.4
  },
  "luminance": 0.06206
}

Semantic roles & 50–950 ramp

primary
#8A1240
secondary
#39BF8B
accent
#F3AA34
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1240

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

Preview Lab → · Contrast checker → · Palette generator →

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