#8A407B#8A407B

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

Color values

HEX#8A407B
RGBrgb(138, 64, 123)
HSLhsl(312, 37%, 40%)
HSVhsv(312, 54%, 54%)
CMYKcmyk(0%, 53.6%, 10.9%, 45.9%)
CIE-LABlab(38.73, 39.55, -19.19)
CIE-LCHlch(38.73, 43.96, 334.12°)
OKLaboklab(48.8% 0.1148 -0.0519)
OKLCHoklch(48.8% 0.126 335.7)
XYZxyz(15.8899, 10.5012, 19.9251)
Luminance0.1050 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A407B #408A4F
analogous
#74408A #8A407B #8A4056
triadic
#8A407B #7B8A40 #407B8A
tetradic
#8A407B #8A7440 #408A4F #40568A
square
#8A407B #8A7440 #408A4F #40568A
split-complementary
#8A407B #568A40 #408A74
monochromatic
#361930 #602D56 #8A407B #B1569E #C480B6

Accessibility & contrast

On white

6.77
#8A407B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8A407B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A407B
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A407B#FFFFFF#000000##FFFFFF
##8A407B1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41547D
Deuteranopia (green-blind)
#565F79
Tritanopia (blue-blind)
#904458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a407b;
/* rgb */ color: rgb(138, 64, 123);
/* oklch */ color: oklch(48.8% 0.126 335.7);
Tailwind
colors: {
  custom: {
    50: '#ae78a1',
    500: '#8a407b',
    950: '#000000',
  },
}
SCSS
$custom: #8a407b;
$custom-light: #ae78a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a407b",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 312.162,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48798,
    "c": 0.12597,
    "h": 335.7
  },
  "luminance": 0.105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A407B

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

Preview Lab → · Contrast checker → · Palette generator →

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