#8A1742#8A1742

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

Color values

HEX#8A1742
RGBrgb(138, 23, 66)
HSLhsl(338, 71%, 32%)
HSVhsv(338, 83%, 54%)
CMYKcmyk(0%, 83.3%, 52.2%, 45.9%)
CIE-LABlab(30.43, 49.12, 4.92)
CIE-LCHlch(30.43, 49.36, 5.72°)
OKLaboklab(41.99% 0.1504 0.013)
OKLCHoklch(41.99% 0.151 4.9)
XYZxyz(11.7721, 6.4111, 5.7708)
Luminance0.0641 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1742 #178A5F
analogous
#8A177C #8A1742 #8A2517
triadic
#8A1742 #428A17 #17428A
tetradic
#8A1742 #7C8A17 #178A5F #25178A
square
#8A1742 #7C8A17 #178A5F #25178A
split-complementary
#8A1742 #178A25 #177C8A
monochromatic
#210610 #560E29 #8A1742 #BE205B #DF3D79

Accessibility & contrast

On white

9.20
#8A1742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#8A1742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1742
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1742#FFFFFF#000000##FFFFFF
##8A17421.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363943
Deuteranopia (green-blind)
#54503F
Tritanopia (blue-blind)
#97002B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8a1742;
/* rgb */ color: rgb(138, 23, 66);
/* oklch */ color: oklch(42.0% 0.151 4.9);
Tailwind
colors: {
  custom: {
    50: '#b26276',
    500: '#8a1742',
    950: '#000000',
  },
}
SCSS
$custom: #8a1742;
$custom-light: #b26276;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1742",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 66
  },
  "hsl": {
    "h": 337.565,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41988,
    "c": 0.15091,
    "h": 4.9
  },
  "luminance": 0.06409
}

Semantic roles & 50–950 ramp

primary
#8A1742
secondary
#3FBE8E
accent
#EEAB3A
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1742

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

Preview Lab → · Contrast checker → · Palette generator →

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