#8A407C#8A407C

#8A407C is a mid, vivid pink. Relative luminance 0.105; OKLCH L 48.8% C 0.127 H 335.1°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#8A407C
RGBrgb(138, 64, 124)
HSLhsl(311, 37%, 40%)
HSVhsv(311, 54%, 54%)
CMYKcmyk(0%, 53.6%, 10.1%, 45.9%)
CIE-LABlab(38.77, 39.72, -19.74)
CIE-LCHlch(38.77, 44.36, 333.58°)
OKLaboklab(48.85% 0.115 -0.0535)
OKLCHoklch(48.85% 0.127 335.1)
XYZxyz(15.9528, 10.5264, 20.2564)
Luminance0.1052 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A407C #408A4E
analogous
#73408A #8A407C #8A4057
triadic
#8A407C #7C8A40 #407C8A
tetradic
#8A407C #8A7340 #408A4E #40578A
square
#8A407C #8A7340 #408A4E #40578A
split-complementary
#8A407C #578A40 #408A73
monochromatic
#361931 #602D56 #8A407C #B156A0 #C480B7

Accessibility & contrast

On white

6.76
#8A407C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8A407C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A407C
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A407C#FFFFFF#000000##FFFFFF
##8A407C1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40547E
Deuteranopia (green-blind)
#555F7A
Tritanopia (blue-blind)
#904458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a407c;
/* rgb */ color: rgb(138, 64, 124);
/* oklch */ color: oklch(48.8% 0.127 335.1);
Tailwind
colors: {
  custom: {
    50: '#ae78a2',
    500: '#8a407c',
    950: '#000000',
  },
}
SCSS
$custom: #8a407c;
$custom-light: #ae78a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a407c",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 311.351,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48845,
    "c": 0.12681,
    "h": 335.1
  },
  "luminance": 0.10525
}

Semantic roles & 50–950 ramp

primary
#8A407C
secondary
#77AF82
accent
#CD715B
background
#FAF7F9
surface
#F5EDF2
border
#CFC8CC
text
#11090F
muted
#807B7E

Preview Lab

Preview with #8A407C

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

Preview Lab → · Contrast checker → · Palette generator →

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