#8A407D#8A407D

#8A407D is a mid, vivid pink. Relative luminance 0.106; OKLCH L 48.9% C 0.128 H 334.5°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#8A407D
RGBrgb(138, 64, 125)
HSLhsl(311, 37%, 40%)
HSVhsv(311, 54%, 54%)
CMYKcmyk(0%, 53.6%, 9.4%, 45.9%)
CIE-LABlab(38.82, 39.90, -20.29)
CIE-LCHlch(38.82, 44.76, 333.05°)
OKLaboklab(48.89% 0.1152 -0.055)
OKLCHoklch(48.89% 0.128 334.5)
XYZxyz(16.0163, 10.5518, 20.5912)
Luminance0.1055 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A407D #408A4D
analogous
#72408A #8A407D #8A4058
triadic
#8A407D #7D8A40 #407D8A
tetradic
#8A407D #8A7240 #408A4D #40588A
square
#8A407D #8A7240 #408A4D #40588A
split-complementary
#8A407D #588A40 #408A72
monochromatic
#361931 #602D57 #8A407D #B156A1 #C480B8

Accessibility & contrast

On white

6.75
#8A407D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A407D
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A407D#FFFFFF#000000##FFFFFF
##8A407D1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40557F
Deuteranopia (green-blind)
#555F7B
Tritanopia (blue-blind)
#904459
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a407d;
/* rgb */ color: rgb(138, 64, 125);
/* oklch */ color: oklch(48.9% 0.128 334.5);
Tailwind
colors: {
  custom: {
    50: '#ae78a3',
    500: '#8a407d',
    950: '#000000',
  },
}
SCSS
$custom: #8a407d;
$custom-light: #ae78a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a407d",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 310.541,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48892,
    "c": 0.12768,
    "h": 334.5
  },
  "luminance": 0.10551
}

Semantic roles & 50–950 ramp

primary
#8A407D
secondary
#77AF81
accent
#CD6F5B
background
#FAF7FA
surface
#F5EDF3
border
#CFC8CD
text
#11090F
muted
#807B7F

Preview Lab

Preview with #8A407D

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

Preview Lab → · Contrast checker → · Palette generator →

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