#8A5CB4#8A5CB4

#8A5CB4 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.2% C 0.139 H 306.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8A5CB4
RGBrgb(138, 92, 180)
HSLhsl(271, 37%, 53%)
HSVhsv(271, 49%, 71%)
CMYKcmyk(23.3%, 48.9%, 0%, 29.4%)
CIE-LABlab(47.43, 36.09, -39.76)
CIE-LCHlch(47.43, 53.69, 312.23°)
OKLaboklab(56.17% 0.0826 -0.1113)
OKLCHoklch(56.17% 0.139 306.6)
XYZxyz(22.5449, 16.3531, 45.1399)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CB4 #86B45C
analogous
#5E5CB4 #8A5CB4 #B45CB2
triadic
#8A5CB4 #B48A5C #5CB48A
tetradic
#8A5CB4 #B45E5C #86B45C #5CB2B4
square
#8A5CB4 #B45E5C #86B45C #5CB2B4
split-complementary
#8A5CB4 #B2B45C #5CB45E
monochromatic
#4C2F66 #6B4290 #8A5CB4 #A886C7 #C6B0DB

Accessibility & contrast

On white

4.92
#8A5CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#8A5CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CB4
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CB4#FFFFFF#000000##FFFFFF
##8A5CB41.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446FB7
Deuteranopia (green-blind)
#5171B2
Tritanopia (blue-blind)
#846B7F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5cb4;
/* rgb */ color: rgb(138, 92, 180);
/* oklch */ color: oklch(56.2% 0.139 306.6);
Tailwind
colors: {
  custom: {
    50: '#ae8bcb',
    500: '#8a5cb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cb4;
$custom-light: #ae8bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cb4",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 180
  },
  "hsl": {
    "h": 271.364,
    "s": 36.975,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56173,
    "c": 0.13859,
    "h": 306.6
  },
  "luminance": 0.16353
}

Semantic roles & 50–950 ramp

primary
#8A5CB4
secondary
#B5C9A3
accent
#CD5B91
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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