#8A408E#8A408E

#8A408E is a mid, vivid purple. Relative luminance 0.110; OKLCH L 49.8% C 0.143 H 325.5°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#8A408E
RGBrgb(138, 64, 142)
HSLhsl(297, 38%, 40%)
HSVhsv(297, 55%, 56%)
CMYKcmyk(2.8%, 54.9%, 0%, 44.3%)
CIE-LABlab(39.62, 43.05, -29.45)
CIE-LCHlch(39.62, 52.16, 325.62°)
OKLaboklab(49.75% 0.1181 -0.0812)
OKLCHoklch(49.75% 0.143 325.5)
XYZxyz(17.1967, 11.0240, 26.8080)
Luminance0.1102 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A408E #448E40
analogous
#63408E #8A408E #8E406B
triadic
#8A408E #8E8A40 #408E8A
tetradic
#8A408E #8E6340 #448E40 #406B8E
square
#8A408E #8E6340 #448E40 #406B8E
split-complementary
#8A408E #6B8E40 #408E63
monochromatic
#381A3A #612D64 #8A408E #AF58B4 #C382C7

Accessibility & contrast

On white

6.55
#8A408E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8A408E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A408E
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A408E#FFFFFF#000000##FFFFFF
##8A408E1.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365791
Deuteranopia (green-blind)
#4E618C
Tritanopia (blue-blind)
#8D4A61
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a408e;
/* rgb */ color: rgb(138, 64, 142);
/* oklch */ color: oklch(49.8% 0.143 325.5);
Tailwind
colors: {
  custom: {
    50: '#ae79af',
    500: '#8a408e',
    950: '#000000',
  },
}
SCSS
$custom: #8a408e;
$custom-light: #ae79af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a408e",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 296.923,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4975,
    "c": 0.14334,
    "h": 325.5
  },
  "luminance": 0.11023
}

Semantic roles & 50–950 ramp

primary
#8A408E
secondary
#7CB179
accent
#CE5A60
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A408E

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

Preview Lab → · Contrast checker → · Palette generator →

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