#8A5CAA#8A5CAA

#8A5CAA is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.6% C 0.126 H 310.1°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A5CAA
RGBrgb(138, 92, 170)
HSLhsl(275, 31%, 51%)
HSVhsv(275, 46%, 67%)
CMYKcmyk(18.8%, 45.9%, 0%, 33.3%)
CIE-LABlab(46.92, 33.73, -34.71)
CIE-LCHlch(46.92, 48.40, 314.18°)
OKLaboklab(55.62% 0.0812 -0.0966)
OKLCHoklch(55.62% 0.126 310.1)
XYZxyz(21.5627, 15.9602, 39.9671)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CAA #7CAA5C
analogous
#635CAA #8A5CAA #AA5CA3
triadic
#8A5CAA #AA8A5C #5CAA8A
tetradic
#8A5CAA #AA635C #7CAA5C #5CA3AA
square
#8A5CAA #AA635C #7CAA5C #5CA3AA
split-complementary
#8A5CAA #A3AA5C #5CAA63
monochromatic
#4A305C #6A4584 #8A5CAA #A784BF #C4ACD4

Accessibility & contrast

On white

5.01
#8A5CAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A5CAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CAA
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CAA#FFFFFF#000000##FFFFFF
##8A5CAA1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6DAD
Deuteranopia (green-blind)
#5670A8
Tritanopia (blue-blind)
#86687B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5caa;
/* rgb */ color: rgb(138, 92, 170);
/* oklch */ color: oklch(55.6% 0.126 310.1);
Tailwind
colors: {
  custom: {
    50: '#ae8bc3',
    500: '#8a5caa',
    950: '#000000',
  },
}
SCSS
$custom: #8a5caa;
$custom-light: #ae8bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5caa",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 170
  },
  "hsl": {
    "h": 275.385,
    "s": 31.452,
    "l": 51.373
  },
  "oklch": {
    "l": 0.55624,
    "c": 0.12622,
    "h": 310.1
  },
  "luminance": 0.1596
}

Semantic roles & 50–950 ramp

primary
#8A5CAA
secondary
#AEC2A0
accent
#C8608B
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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