#8A5AB4#8A5AB4

#8A5AB4 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.8% C 0.142 H 307.0°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A5AB4
RGBrgb(138, 90, 180)
HSLhsl(272, 38%, 53%)
HSVhsv(272, 50%, 71%)
CMYKcmyk(23.3%, 50%, 0%, 29.4%)
CIE-LABlab(46.99, 37.22, -40.46)
CIE-LCHlch(46.99, 54.98, 312.61°)
OKLaboklab(55.84% 0.0854 -0.1133)
OKLCHoklch(55.84% 0.142 307)
XYZxyz(22.3740, 16.0111, 45.0829)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AB4 #84B45A
analogous
#5D5AB4 #8A5AB4 #B45AB1
triadic
#8A5AB4 #B48A5A #5AB48A
tetradic
#8A5AB4 #B45D5A #84B45A #5AB1B4
square
#8A5AB4 #B45D5A #84B45A #5AB1B4
split-complementary
#8A5AB4 #B1B45A #5AB45D
monochromatic
#4C2E65 #6B4190 #8A5AB4 #A884C7 #C6AEDA

Accessibility & contrast

On white

5.00
#8A5AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#8A5AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AB4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AB4#FFFFFF#000000##FFFFFF
##8A5AB41.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416EB7
Deuteranopia (green-blind)
#4F70B2
Tritanopia (blue-blind)
#84697F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5ab4;
/* rgb */ color: rgb(138, 90, 180);
/* oklch */ color: oklch(55.8% 0.142 307.0);
Tailwind
colors: {
  custom: {
    50: '#ae8acb',
    500: '#8a5ab4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ab4;
$custom-light: #ae8acb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ab4",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 180
  },
  "hsl": {
    "h": 272,
    "s": 37.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55842,
    "c": 0.14191,
    "h": 307
  },
  "luminance": 0.16011
}

Semantic roles & 50–950 ramp

primary
#8A5AB4
secondary
#B4C8A1
accent
#CD5A90
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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