#8A5AC5#8A5AC5

#8A5AC5 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.9% C 0.163 H 302.2°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8A5AC5
RGBrgb(138, 90, 197)
HSLhsl(267, 48%, 56%)
HSVhsv(267, 54%, 77%)
CMYKcmyk(29.9%, 54.3%, 0%, 22.7%)
CIE-LABlab(47.94, 41.36, -48.82)
CIE-LCHlch(47.94, 63.98, 310.27°)
OKLaboklab(56.85% 0.0867 -0.1377)
OKLCHoklch(56.85% 0.163 302.2)
XYZxyz(24.2131, 16.7468, 54.7693)
Luminance0.1675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AC5 #95C55A
analogous
#5A60C5 #8A5AC5 #C05AC5
triadic
#8A5AC5 #C58A5A #5AC58A
tetradic
#8A5AC5 #C55A60 #95C55A #5AC5C0
square
#8A5AC5 #C55A60 #95C55A #5AC5C0
split-complementary
#8A5AC5 #C5C05A #60C55A
monochromatic
#4E2B7A #6B3BA7 #8A5AC5 #AA87D5 #CAB5E5

Accessibility & contrast

On white

4.83
#8A5AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#8A5AC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AC5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AC5#FFFFFF#000000##FFFFFF
##8A5AC51.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3271C9
Deuteranopia (green-blind)
#4271C2
Tritanopia (blue-blind)
#7F6F87
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5ac5;
/* rgb */ color: rgb(138, 90, 197);
/* oklch */ color: oklch(56.9% 0.163 302.2);
Tailwind
colors: {
  custom: {
    50: '#af8ad7',
    500: '#8a5ac5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ac5;
$custom-light: #af8ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ac5",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 197
  },
  "hsl": {
    "h": 266.916,
    "s": 47.982,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56853,
    "c": 0.16276,
    "h": 302.2
  },
  "luminance": 0.16747
}

Semantic roles & 50–950 ramp

primary
#8A5AC5
secondary
#C0D3A7
accent
#D8509B
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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