#8A408C#8A408C

#8A408C is a mid, vivid purple. Relative luminance 0.110; OKLCH L 49.6% C 0.141 H 326.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#8A408C
RGBrgb(138, 64, 140)
HSLhsl(298, 37%, 40%)
HSVhsv(298, 54%, 55%)
CMYKcmyk(1.4%, 54.3%, 0%, 45.1%)
CIE-LABlab(39.52, 42.66, -28.39)
CIE-LCHlch(39.52, 51.25, 326.36°)
OKLaboklab(49.64% 0.1178 -0.0782)
OKLCHoklch(49.64% 0.141 326.4)
XYZxyz(17.0479, 10.9645, 26.0243)
Luminance0.1096 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A408C #428C40
analogous
#64408C #8A408C #8C4068
triadic
#8A408C #8C8A40 #408C8A
tetradic
#8A408C #8C6440 #428C40 #40688C
square
#8A408C #8C6440 #428C40 #40688C
split-complementary
#8A408C #688C40 #408C64
monochromatic
#371A38 #612D62 #8A408C #B057B2 #C481C5

Accessibility & contrast

On white

6.58
#8A408C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8A408C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A408C
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A408C#FFFFFF#000000##FFFFFF
##8A408C1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38578E
Deuteranopia (green-blind)
#4F608A
Tritanopia (blue-blind)
#8D4960
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a408c;
/* rgb */ color: rgb(138, 64, 140);
/* oklch */ color: oklch(49.6% 0.141 326.4);
Tailwind
colors: {
  custom: {
    50: '#ae78ae',
    500: '#8a408c',
    950: '#000000',
  },
}
SCSS
$custom: #8a408c;
$custom-light: #ae78ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a408c",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 298.421,
    "s": 37.255,
    "l": 40
  },
  "oklch": {
    "l": 0.49643,
    "c": 0.14141,
    "h": 326.4
  },
  "luminance": 0.10964
}

Semantic roles & 50–950 ramp

primary
#8A408C
secondary
#79B078
accent
#CD5B5E
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A408C

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

Preview Lab → · Contrast checker → · Palette generator →

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