#8A417D#8A417D

#8A417D is a mid, vivid pink. Relative luminance 0.107; OKLCH L 49.0% C 0.126 H 334.5°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8A417D
RGBrgb(138, 65, 125)
HSLhsl(311, 36%, 40%)
HSVhsv(311, 53%, 54%)
CMYKcmyk(0%, 52.9%, 9.4%, 45.9%)
CIE-LABlab(39.01, 39.38, -19.99)
CIE-LCHlch(39.01, 44.16, 333.09°)
OKLaboklab(49.04% 0.1137 -0.0542)
OKLCHoklch(49.04% 0.126 334.5)
XYZxyz(16.0732, 10.6656, 20.6101)
Luminance0.1066 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A417D #418A4E
analogous
#73418A #8A417D #8A4158
triadic
#8A417D #7D8A41 #417D8A
tetradic
#8A417D #8A7341 #418A4E #41588A
square
#8A417D #8A7341 #418A4E #41588A
split-complementary
#8A417D #588A41 #418A73
monochromatic
#371A32 #602D57 #8A417D #B058A1 #C482B8

Accessibility & contrast

On white

6.70
#8A417D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A417D
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A417D#FFFFFF#000000##FFFFFF
##8A417D1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a417d;
/* rgb */ color: rgb(138, 65, 125);
/* oklch */ color: oklch(49.0% 0.126 334.5);
Tailwind
colors: {
  custom: {
    50: '#ae79a2',
    500: '#8a417d',
    950: '#000000',
  },
}
SCSS
$custom: #8a417d;
$custom-light: #ae79a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a417d",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 310.685,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49037,
    "c": 0.12595,
    "h": 334.5
  },
  "luminance": 0.10665
}

Semantic roles & 50–950 ramp

primary
#8A417D
secondary
#78AE82
accent
#CC705C
background
#FAF7FA
surface
#F5EDF3
border
#CFC8CD
text
#10090F
muted
#7F7B7F

Preview Lab

Preview with #8A417D

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

Preview Lab → · Contrast checker → · Palette generator →

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