#8A5AA5#8A5AA5

#8A5AA5 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.0% C 0.124 H 312.4°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A5AA5
RGBrgb(138, 90, 165)
HSLhsl(278, 29%, 50%)
HSVhsv(278, 45%, 65%)
CMYKcmyk(16.4%, 45.5%, 0%, 35.3%)
CIE-LABlab(46.22, 33.73, -32.87)
CIE-LCHlch(46.22, 47.10, 315.74°)
OKLaboklab(55.02% 0.0834 -0.0913)
OKLCHoklch(55.02% 0.124 312.4)
XYZxyz(20.9278, 15.4326, 37.4664)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AA5 #75A55A
analogous
#645AA5 #8A5AA5 #A55A9B
triadic
#8A5AA5 #A58A5A #5AA58A
tetradic
#8A5AA5 #A5645A #75A55A #5A9BA5
square
#8A5AA5 #A5645A #75A55A #5A9BA5
split-complementary
#8A5AA5 #9BA55A #5AA564
monochromatic
#482F56 #69447D #8A5AA5 #A682BB #C2A9D0

Accessibility & contrast

On white

5.14
#8A5AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8A5AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AA5
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AA5#FFFFFF#000000##FFFFFF
##8A5AA51.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6BA8
Deuteranopia (green-blind)
#576FA3
Tritanopia (blue-blind)
#876578
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a5aa5;
/* rgb */ color: rgb(138, 90, 165);
/* oklch */ color: oklch(55.0% 0.124 312.4);
Tailwind
colors: {
  custom: {
    50: '#ae8ac0',
    500: '#8a5aa5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aa5;
$custom-light: #ae8ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aa5",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 165
  },
  "hsl": {
    "h": 278.4,
    "s": 29.412,
    "l": 50
  },
  "oklch": {
    "l": 0.55019,
    "c": 0.12361,
    "h": 312.4
  },
  "luminance": 0.15432
}

Semantic roles & 50–950 ramp

primary
#8A5AA5
secondary
#A9BE9D
accent
#C66286
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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