#8A417F#8A417F

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

Color values

HEX#8A417F
RGBrgb(138, 65, 127)
HSLhsl(309, 36%, 40%)
HSVhsv(309, 53%, 54%)
CMYKcmyk(0%, 52.9%, 8%, 45.9%)
CIE-LABlab(39.10, 39.74, -21.08)
CIE-LCHlch(39.10, 44.98, 332.05°)
OKLaboklab(49.13% 0.1141 -0.0573)
OKLCHoklch(49.13% 0.128 333.3)
XYZxyz(16.2023, 10.7172, 21.2898)
Luminance0.1072 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A417F #418A4C
analogous
#71418A #8A417F #8A415B
triadic
#8A417F #7F8A41 #417F8A
tetradic
#8A417F #8A7141 #418A4C #415B8A
square
#8A417F #8A7141 #418A4C #415B8A
split-complementary
#8A417F #5B8A41 #418A71
monochromatic
#371A32 #602D59 #8A417F #B058A3 #C482BA

Accessibility & contrast

On white

6.68
#8A417F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A417F
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A417F#FFFFFF#000000##FFFFFF
##8A417F1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405581
Deuteranopia (green-blind)
#55607D
Tritanopia (blue-blind)
#90465A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a417f;
/* rgb */ color: rgb(138, 65, 127);
/* oklch */ color: oklch(49.1% 0.128 333.3);
Tailwind
colors: {
  custom: {
    50: '#ae79a4',
    500: '#8a417f',
    950: '#000000',
  },
}
SCSS
$custom: #8a417f;
$custom-light: #ae79a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a417f",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 309.041,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49132,
    "c": 0.1277,
    "h": 333.3
  },
  "luminance": 0.10716
}

Semantic roles & 50–950 ramp

primary
#8A417F
secondary
#78AE80
accent
#CC6D5C
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#10090F
muted
#7F7B7F

Preview Lab

Preview with #8A417F

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

Preview Lab → · Contrast checker → · Palette generator →

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