#8A3EAE#8A3EAE

#8A3EAE is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.4% C 0.179 H 313.1°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8A3EAE
RGBrgb(138, 62, 174)
HSLhsl(281, 47%, 46%)
HSVhsv(281, 64%, 68%)
CMYKcmyk(20.7%, 64.4%, 0%, 31.8%)
CIE-LABlab(41.06, 50.64, -46.37)
CIE-LCHlch(41.06, 68.67, 317.52°)
OKLaboklab(51.39% 0.1222 -0.1304)
OKLCHoklch(51.39% 0.179 313.1)
XYZxyz(19.8425, 11.9051, 41.2888)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EAE #62AE3E
analogous
#523EAE #8A3EAE #AE3E9A
triadic
#8A3EAE #AE8A3E #3EAE8A
tetradic
#8A3EAE #AE523E #62AE3E #3E9AAE
square
#8A3EAE #AE523E #62AE3E #3E9AAE
split-complementary
#8A3EAE #9AAE3E #3EAE52
monochromatic
#421E54 #662E81 #8A3EAE #A762C7 #C08FD7

Accessibility & contrast

On white

6.21
#8A3EAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8A3EAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EAE
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EAE#FFFFFF#000000##FFFFFF
##8A3EAE1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095DB1
Deuteranopia (green-blind)
#3763AB
Tritanopia (blue-blind)
#865370
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3eae;
/* rgb */ color: rgb(138, 62, 174);
/* oklch */ color: oklch(51.4% 0.179 313.1);
Tailwind
colors: {
  custom: {
    50: '#af78c7',
    500: '#8a3eae',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eae;
$custom-light: #af78c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eae",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 174
  },
  "hsl": {
    "h": 280.714,
    "s": 47.458,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51386,
    "c": 0.17871,
    "h": 313.1
  },
  "luminance": 0.11905
}

Semantic roles & 50–950 ramp

primary
#8A3EAE
secondary
#99C286
accent
#D7517C
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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