#8A5CA7#8A5CA7

#8A5CA7 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.5% C 0.123 H 311.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A5CA7
RGBrgb(138, 92, 167)
HSLhsl(277, 30%, 51%)
HSVhsv(277, 45%, 65%)
CMYKcmyk(17.4%, 44.9%, 0%, 34.5%)
CIE-LABlab(46.77, 33.04, -33.18)
CIE-LCHlch(46.77, 46.83, 314.88°)
OKLaboklab(55.47% 0.0807 -0.0922)
OKLCHoklch(55.47% 0.123 311.2)
XYZxyz(21.2822, 15.8480, 38.4896)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CA7 #79A75C
analogous
#645CA7 #8A5CA7 #A75C9E
triadic
#8A5CA7 #A78A5C #5CA78A
tetradic
#8A5CA7 #A7645C #79A75C #5C9EA7
square
#8A5CA7 #A7645C #79A75C #5C9EA7
split-complementary
#8A5CA7 #9EA75C #5CA764
monochromatic
#493059 #6A4580 #8A5CA7 #A784BC #C3ABD2

Accessibility & contrast

On white

5.04
#8A5CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8A5CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CA7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CA7#FFFFFF#000000##FFFFFF
##8A5CA71.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a5ca7;
/* rgb */ color: rgb(138, 92, 167);
/* oklch */ color: oklch(55.5% 0.123 311.2);
Tailwind
colors: {
  custom: {
    50: '#ad8bc1',
    500: '#8a5ca7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ca7;
$custom-light: #ad8bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ca7",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 167
  },
  "hsl": {
    "h": 276.8,
    "s": 29.88,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55465,
    "c": 0.12253,
    "h": 311.2
  },
  "luminance": 0.15848
}

Semantic roles & 50–950 ramp

primary
#8A5CA7
secondary
#ACC09F
accent
#C66289
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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