#8A5EAE#8A5EAE

#8A5EAE is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.2% C 0.128 H 308.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A5EAE
RGBrgb(138, 94, 174)
HSLhsl(273, 33%, 53%)
HSVhsv(273, 46%, 68%)
CMYKcmyk(20.7%, 46%, 0%, 31.8%)
CIE-LABlab(47.58, 33.52, -36.03)
CIE-LCHlch(47.58, 49.21, 312.93°)
OKLaboklab(56.18% 0.0789 -0.1004)
OKLCHoklch(56.18% 0.128 308.2)
XYZxyz(22.1224, 16.4649, 42.0488)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EAE #82AE5E
analogous
#625EAE #8A5EAE #AE5EAA
triadic
#8A5EAE #AE8A5E #5EAE8A
tetradic
#8A5EAE #AE625E #82AE5E #5EAAAE
square
#8A5EAE #AE625E #82AE5E #5EAAAE
split-complementary
#8A5EAE #AAAE5E #5EAE62
monochromatic
#4B3161 #6B458A #8A5EAE #A887C2 #C5AFD7

Accessibility & contrast

On white

4.89
#8A5EAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8A5EAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EAE
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EAE#FFFFFF#000000##FFFFFF
##8A5EAE1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6FB1
Deuteranopia (green-blind)
#5671AC
Tritanopia (blue-blind)
#856B7E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5eae;
/* rgb */ color: rgb(138, 94, 174);
/* oklch */ color: oklch(56.2% 0.128 308.2);
Tailwind
colors: {
  custom: {
    50: '#ae8cc6',
    500: '#8a5eae',
    950: '#000000',
  },
}
SCSS
$custom: #8a5eae;
$custom-light: #ae8cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5eae",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 174
  },
  "hsl": {
    "h": 273,
    "s": 33.058,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5618,
    "c": 0.12773,
    "h": 308.2
  },
  "luminance": 0.16465
}

Semantic roles & 50–950 ramp

primary
#8A5EAE
secondary
#B2C5A3
accent
#C95F8F
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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