#8A5AA7#8A5AA7

#8A5AA7 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.1% C 0.126 H 311.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8A5AA7
RGBrgb(138, 90, 167)
HSLhsl(277, 30%, 50%)
HSVhsv(277, 46%, 65%)
CMYKcmyk(17.4%, 46.1%, 0%, 34.5%)
CIE-LABlab(46.32, 34.19, -33.90)
CIE-LCHlch(46.32, 48.14, 315.24°)
OKLaboklab(55.13% 0.0837 -0.0942)
OKLCHoklch(55.13% 0.126 311.6)
XYZxyz(21.1112, 15.5060, 38.4326)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AA7 #77A75A
analogous
#635AA7 #8A5AA7 #A75A9D
triadic
#8A5AA7 #A78A5A #5AA78A
tetradic
#8A5AA7 #A7635A #77A75A #5A9DA7
square
#8A5AA7 #A7635A #77A75A #5A9DA7
split-complementary
#8A5AA7 #9DA75A #5AA763
monochromatic
#482F58 #694480 #8A5AA7 #A682BC #C3AAD2

Accessibility & contrast

On white

5.12
#8A5AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8A5AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AA7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AA7#FFFFFF#000000##FFFFFF
##8A5AA71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496BAA
Deuteranopia (green-blind)
#566FA5
Tritanopia (blue-blind)
#876678
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a5aa7;
/* rgb */ color: rgb(138, 90, 167);
/* oklch */ color: oklch(55.1% 0.126 311.6);
Tailwind
colors: {
  custom: {
    50: '#ae8ac1',
    500: '#8a5aa7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aa7;
$custom-light: #ae8ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aa7",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 167
  },
  "hsl": {
    "h": 277.403,
    "s": 30.435,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55125,
    "c": 0.12603,
    "h": 311.6
  },
  "luminance": 0.15506
}

Semantic roles & 50–950 ramp

primary
#8A5AA7
secondary
#AAC09D
accent
#C76187
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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