#8A5CA6#8A5CA6

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

Color values

HEX#8A5CA6
RGBrgb(138, 92, 166)
HSLhsl(277, 29%, 51%)
HSVhsv(277, 45%, 65%)
CMYKcmyk(16.9%, 44.6%, 0%, 34.9%)
CIE-LABlab(46.73, 32.81, -32.67)
CIE-LCHlch(46.73, 46.30, 315.12°)
OKLaboklab(55.41% 0.0806 -0.0907)
OKLCHoklch(55.41% 0.121 311.6)
XYZxyz(21.1901, 15.8111, 38.0046)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CA6 #78A65C
analogous
#655CA6 #8A5CA6 #A65C9D
triadic
#8A5CA6 #A68A5C #5CA68A
tetradic
#8A5CA6 #A6655C #78A65C #5C9DA6
square
#8A5CA6 #A6655C #78A65C #5C9DA6
split-complementary
#8A5CA6 #9DA65C #5CA665
monochromatic
#493058 #69467F #8A5CA6 #A684BC #C3ABD1

Accessibility & contrast

On white

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

On black

4.16
#8A5CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A5CA6#FFFFFF#000000##FFFFFF
##8A5CA61.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6CA9
Deuteranopia (green-blind)
#5870A4
Tritanopia (blue-blind)
#876779
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5ca6;
/* rgb */ color: rgb(138, 92, 166);
/* oklch */ color: oklch(55.4% 0.121 311.6);
Tailwind
colors: {
  custom: {
    50: '#ad8bc0',
    500: '#8a5ca6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ca6;
$custom-light: #ad8bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ca6",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 166
  },
  "hsl": {
    "h": 277.297,
    "s": 29.365,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55412,
    "c": 0.12131,
    "h": 311.6
  },
  "luminance": 0.15811
}

Semantic roles & 50–950 ramp

primary
#8A5CA6
secondary
#ABBF9E
accent
#C66288
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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