#8A4087#8A4087

#8A4087 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.4% C 0.137 H 328.9°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8A4087
RGBrgb(138, 64, 135)
HSLhsl(302, 37%, 40%)
HSVhsv(302, 54%, 54%)
CMYKcmyk(0%, 53.6%, 2.2%, 45.9%)
CIE-LABlab(39.28, 41.72, -25.72)
CIE-LCHlch(39.28, 49.01, 328.34°)
OKLaboklab(49.38% 0.1171 -0.0705)
OKLCHoklch(49.38% 0.137 328.9)
XYZxyz(16.6876, 10.8203, 24.1265)
Luminance0.1082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4087 #408A43
analogous
#68408A #8A4087 #8A4062
triadic
#8A4087 #878A40 #40878A
tetradic
#8A4087 #8A6840 #408A43 #40628A
square
#8A4087 #8A6840 #408A43 #40628A
split-complementary
#8A4087 #628A40 #408A68
monochromatic
#361935 #602D5E #8A4087 #B156AD #C480C1

Accessibility & contrast

On white

6.64
#8A4087 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8A4087 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4087
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4087#FFFFFF#000000##FFFFFF
##8A40871.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5689
Deuteranopia (green-blind)
#516085
Tritanopia (blue-blind)
#8E475D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a4087;
/* rgb */ color: rgb(138, 64, 135);
/* oklch */ color: oklch(49.4% 0.137 328.9);
Tailwind
colors: {
  custom: {
    50: '#ae78aa',
    500: '#8a4087',
    950: '#000000',
  },
}
SCSS
$custom: #8a4087;
$custom-light: #ae78aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4087",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 135
  },
  "hsl": {
    "h": 302.432,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49384,
    "c": 0.13668,
    "h": 328.9
  },
  "luminance": 0.10819
}

Semantic roles & 50–950 ramp

primary
#8A4087
secondary
#77AF79
accent
#CD605B
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A4087

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

Preview Lab → · Contrast checker → · Palette generator →

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