#8A417C#8A417C

#8A417C is a mid, vivid pink. Relative luminance 0.106; OKLCH L 49.0% C 0.125 H 335.1°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#8A417C
RGBrgb(138, 65, 124)
HSLhsl(312, 36%, 40%)
HSVhsv(312, 53%, 54%)
CMYKcmyk(0%, 52.9%, 10.1%, 45.9%)
CIE-LABlab(38.97, 39.20, -19.44)
CIE-LCHlch(38.97, 43.76, 333.63°)
OKLaboklab(48.99% 0.1135 -0.0526)
OKLCHoklch(48.99% 0.125 335.1)
XYZxyz(16.0097, 10.6402, 20.2754)
Luminance0.1064 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A417C #418A4F
analogous
#74418A #8A417C #8A4157
triadic
#8A417C #7C8A41 #417C8A
tetradic
#8A417C #8A7441 #418A4F #41578A
square
#8A417C #8A7441 #418A4F #41578A
split-complementary
#8A417C #578A41 #418A74
monochromatic
#371A31 #602D57 #8A417C #B0589F #C482B7

Accessibility & contrast

On white

6.71
#8A417C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8A417C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A417C
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A417C#FFFFFF#000000##FFFFFF
##8A417C1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41557E
Deuteranopia (green-blind)
#56607A
Tritanopia (blue-blind)
#904559
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a417c;
/* rgb */ color: rgb(138, 65, 124);
/* oklch */ color: oklch(49.0% 0.125 335.1);
Tailwind
colors: {
  custom: {
    50: '#ae79a2',
    500: '#8a417c',
    950: '#000000',
  },
}
SCSS
$custom: #8a417c;
$custom-light: #ae79a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a417c",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 311.507,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48991,
    "c": 0.12509,
    "h": 335.1
  },
  "luminance": 0.10639
}

Semantic roles & 50–950 ramp

primary
#8A417C
secondary
#78AE83
accent
#CC715C
background
#FAF7F9
surface
#F5EDF2
border
#CFC8CC
text
#10090F
muted
#7F7B7E

Preview Lab

Preview with #8A417C

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

Preview Lab → · Contrast checker → · Palette generator →

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