#8A417E#8A417E

#8A417E is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.1% C 0.127 H 333.9°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8A417E
RGBrgb(138, 65, 126)
HSLhsl(310, 36%, 40%)
HSVhsv(310, 53%, 54%)
CMYKcmyk(0%, 52.9%, 8.7%, 45.9%)
CIE-LABlab(39.06, 39.56, -20.54)
CIE-LCHlch(39.06, 44.57, 332.56°)
OKLaboklab(49.09% 0.1139 -0.0557)
OKLCHoklch(49.09% 0.127 333.9)
XYZxyz(16.1374, 10.6913, 20.9483)
Luminance0.1069 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A417E #418A4D
analogous
#72418A #8A417E #8A415A
triadic
#8A417E #7E8A41 #417E8A
tetradic
#8A417E #8A7241 #418A4D #415A8A
square
#8A417E #8A7241 #418A4D #415A8A
split-complementary
#8A417E #5A8A41 #418A72
monochromatic
#371A32 #602D58 #8A417E #B058A2 #C482B9

Accessibility & contrast

On white

6.69
#8A417E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8A417E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A417E
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A417E#FFFFFF#000000##FFFFFF
##8A417E1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405580
Deuteranopia (green-blind)
#55607C
Tritanopia (blue-blind)
#90455A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a417e;
/* rgb */ color: rgb(138, 65, 126);
/* oklch */ color: oklch(49.1% 0.127 333.9);
Tailwind
colors: {
  custom: {
    50: '#ae79a3',
    500: '#8a417e',
    950: '#000000',
  },
}
SCSS
$custom: #8a417e;
$custom-light: #ae79a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a417e",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 126
  },
  "hsl": {
    "h": 309.863,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49085,
    "c": 0.12681,
    "h": 333.9
  },
  "luminance": 0.1069
}

Semantic roles & 50–950 ramp

primary
#8A417E
secondary
#78AE81
accent
#CC6E5C
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#10090F
muted
#7F7B7F

Preview Lab

Preview with #8A417E

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

Preview Lab → · Contrast checker → · Palette generator →

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