#8A5AAE#8A5AAE

#8A5AAE is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.5% C 0.135 H 309.0°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A5AAE
RGBrgb(138, 90, 174)
HSLhsl(274, 34%, 52%)
HSVhsv(274, 48%, 68%)
CMYKcmyk(20.7%, 48.3%, 0%, 31.8%)
CIE-LABlab(46.67, 35.80, -37.45)
CIE-LCHlch(46.67, 51.81, 313.71°)
OKLaboklab(55.51% 0.0847 -0.1045)
OKLCHoklch(55.51% 0.135 309)
XYZxyz(21.7759, 15.7719, 41.9333)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AAE #7EAE5A
analogous
#605AAE #8A5AAE #AE5AA8
triadic
#8A5AAE #AE8A5A #5AAE8A
tetradic
#8A5AAE #AE605A #7EAE5A #5AA8AE
square
#8A5AAE #AE605A #7EAE5A #5AA8AE
split-complementary
#8A5AAE #A8AE5A #5AAE60
monochromatic
#4A2F5F #6A4388 #8A5AAE #A783C2 #C4ACD6

Accessibility & contrast

On white

5.05
#8A5AAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#8A5AAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AAE
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AAE#FFFFFF#000000##FFFFFF
##8A5AAE1.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456DB1
Deuteranopia (green-blind)
#526FAC
Tritanopia (blue-blind)
#85687C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5aae;
/* rgb */ color: rgb(138, 90, 174);
/* oklch */ color: oklch(55.5% 0.135 309.0);
Tailwind
colors: {
  custom: {
    50: '#ae8ac6',
    500: '#8a5aae',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aae;
$custom-light: #ae8ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aae",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 174
  },
  "hsl": {
    "h": 274.286,
    "s": 34.146,
    "l": 51.765
  },
  "oklch": {
    "l": 0.55505,
    "c": 0.13456,
    "h": 309
  },
  "luminance": 0.15772
}

Semantic roles & 50–950 ramp

primary
#8A5AAE
secondary
#AFC49F
accent
#CA5E8C
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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