#8A1842#8A1842

#8A1842 is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.1% C 0.150 H 5.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#8A1842
RGBrgb(138, 24, 66)
HSLhsl(338, 70%, 32%)
HSVhsv(338, 83%, 54%)
CMYKcmyk(0%, 82.6%, 52.2%, 45.9%)
CIE-LABlab(30.52, 48.84, 5.06)
CIE-LCHlch(30.52, 49.10, 5.91°)
OKLaboklab(42.06% 0.1495 0.0133)
OKLCHoklch(42.06% 0.15 5.1)
XYZxyz(11.7923, 6.4516, 5.7775)
Luminance0.0645 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1842 #188A60
analogous
#8A187B #8A1842 #8A2718
triadic
#8A1842 #428A18 #18428A
tetradic
#8A1842 #7B8A18 #188A60 #27188A
square
#8A1842 #7B8A18 #188A60 #27188A
split-complementary
#8A1842 #188A27 #187B8A
monochromatic
#220610 #560F29 #8A1842 #BE215B #DE3F79

Accessibility & contrast

On white

9.17
#8A1842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1842
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1842#FFFFFF#000000##FFFFFF
##8A18421.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1842;
/* rgb */ color: rgb(138, 24, 66);
/* oklch */ color: oklch(42.1% 0.150 5.1);
Tailwind
colors: {
  custom: {
    50: '#b26376',
    500: '#8a1842',
    950: '#000000',
  },
}
SCSS
$custom: #8a1842;
$custom-light: #b26376;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1842",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 66
  },
  "hsl": {
    "h": 337.895,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4206,
    "c": 0.15004,
    "h": 5.1
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#8A1842
secondary
#40BD8F
accent
#EDAB3B
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1842

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

Preview Lab → · Contrast checker → · Palette generator →

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