#8A5AA3#8A5AA3

#8A5AA3 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 54.9% C 0.121 H 313.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A5AA3
RGBrgb(138, 90, 163)
HSLhsl(279, 29%, 50%)
HSVhsv(279, 45%, 64%)
CMYKcmyk(15.3%, 44.8%, 0%, 36.1%)
CIE-LABlab(46.12, 33.28, -31.84)
CIE-LCHlch(46.12, 46.06, 316.26°)
OKLaboklab(54.91% 0.083 -0.0883)
OKLCHoklch(54.91% 0.121 313.2)
XYZxyz(20.7472, 15.3604, 36.5151)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AA3 #73A35A
analogous
#665AA3 #8A5AA3 #A35A98
triadic
#8A5AA3 #A38A5A #5AA38A
tetradic
#8A5AA3 #A3665A #73A35A #5A98A3
square
#8A5AA3 #A3665A #73A35A #5A98A3
split-complementary
#8A5AA3 #98A35A #5AA366
monochromatic
#472E54 #69447C #8A5AA3 #A681B9 #C2A8CF

Accessibility & contrast

On white

5.16
#8A5AA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8A5AA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AA3
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AA3#FFFFFF#000000##FFFFFF
##8A5AA31.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6BA6
Deuteranopia (green-blind)
#586EA1
Tritanopia (blue-blind)
#886577
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a5aa3;
/* rgb */ color: rgb(138, 90, 163);
/* oklch */ color: oklch(54.9% 0.121 313.2);
Tailwind
colors: {
  custom: {
    50: '#ad8abe',
    500: '#8a5aa3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aa3;
$custom-light: #ad8abe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aa3",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 163
  },
  "hsl": {
    "h": 279.452,
    "s": 28.854,
    "l": 49.608
  },
  "oklch": {
    "l": 0.54914,
    "c": 0.1212,
    "h": 313.2
  },
  "luminance": 0.1536
}

Semantic roles & 50–950 ramp

primary
#8A5AA3
secondary
#A7BD9C
accent
#C56384
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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