#8A407E#8A407E

#8A407E is a mid, vivid purple. Relative luminance 0.106; OKLCH L 48.9% C 0.129 H 333.9°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8A407E
RGBrgb(138, 64, 126)
HSLhsl(310, 37%, 40%)
HSVhsv(310, 54%, 54%)
CMYKcmyk(0%, 53.6%, 8.7%, 45.9%)
CIE-LABlab(38.86, 40.08, -20.84)
CIE-LCHlch(38.86, 45.17, 332.53°)
OKLaboklab(48.94% 0.1154 -0.0566)
OKLCHoklch(48.94% 0.129 333.9)
XYZxyz(16.0805, 10.5775, 20.9293)
Luminance0.1058 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A407E #408A4C
analogous
#71408A #8A407E #8A4059
triadic
#8A407E #7E8A40 #407E8A
tetradic
#8A407E #8A7140 #408A4C #40598A
square
#8A407E #8A7140 #408A4C #40598A
split-complementary
#8A407E #598A40 #408A71
monochromatic
#361932 #602D58 #8A407E #B156A2 #C480B9

Accessibility & contrast

On white

6.74
#8A407E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8A407E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A407E
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A407E#FFFFFF#000000##FFFFFF
##8A407E1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5580
Deuteranopia (green-blind)
#555F7C
Tritanopia (blue-blind)
#904459
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a407e;
/* rgb */ color: rgb(138, 64, 126);
/* oklch */ color: oklch(48.9% 0.129 333.9);
Tailwind
colors: {
  custom: {
    50: '#ae78a3',
    500: '#8a407e',
    950: '#000000',
  },
}
SCSS
$custom: #8a407e;
$custom-light: #ae78a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a407e",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 309.73,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48939,
    "c": 0.12854,
    "h": 333.9
  },
  "luminance": 0.10576
}

Semantic roles & 50–950 ramp

primary
#8A407E
secondary
#77AF80
accent
#CD6E5B
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#11090F
muted
#807B7F

Preview Lab

Preview with #8A407E

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

Preview Lab → · Contrast checker → · Palette generator →

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