#8A2540#8A2540

#8A2540 is a dark, vivid pink. Relative luminance 0.071; OKLCH L 43.2% C 0.136 H 9.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#8A2540
RGBrgb(138, 37, 64)
HSLhsl(344, 58%, 34%)
HSVhsv(344, 73%, 54%)
CMYKcmyk(0%, 73.2%, 53.6%, 45.9%)
CIE-LABlab(32.03, 44.29, 8.50)
CIE-LCHlch(32.03, 45.10, 10.87°)
OKLaboklab(43.15% 0.1346 0.0218)
OKLCHoklch(43.15% 0.136 9.2)
XYZxyz(12.0693, 7.0982, 5.5840)
Luminance0.0710 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2540 #258A6F
analogous
#8A2573 #8A2540 #8A3C25
triadic
#8A2540 #408A25 #25408A
tetradic
#8A2540 #738A25 #258A6F #3C258A
square
#8A2540 #738A25 #258A6F #3C258A
split-complementary
#8A2540 #258A3C #25738A
monochromatic
#290B13 #5A182A #8A2540 #BA3256 #D25778

Accessibility & contrast

On white

8.68
#8A2540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#8A2540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2540
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2540#FFFFFF#000000##FFFFFF
##8A25401.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3E40
Deuteranopia (green-blind)
#58533E
Tritanopia (blue-blind)
#970F30
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #8a2540;
/* rgb */ color: rgb(138, 37, 64);
/* oklch */ color: oklch(43.2% 0.136 9.2);
Tailwind
colors: {
  custom: {
    50: '#b16874',
    500: '#8a2540',
    950: '#000000',
  },
}
SCSS
$custom: #8a2540;
$custom-light: #b16874;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2540",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 343.96,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.43152,
    "c": 0.13631,
    "h": 9.2
  },
  "luminance": 0.07097
}

Semantic roles & 50–950 ramp

primary
#8A2540
secondary
#54B79C
accent
#E1B847
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120708
muted
#817A7B

Preview Lab

Preview with #8A2540

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

Preview Lab → · Contrast checker → · Palette generator →

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