#8A5AB2#8A5AB2

#8A5AB2 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.7% C 0.139 H 307.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8A5AB2
RGBrgb(138, 90, 178)
HSLhsl(273, 36%, 53%)
HSVhsv(273, 49%, 70%)
CMYKcmyk(22.5%, 49.4%, 0%, 30.2%)
CIE-LABlab(46.88, 36.75, -39.46)
CIE-LCHlch(46.88, 53.92, 312.96°)
OKLaboklab(55.73% 0.0852 -0.1104)
OKLCHoklch(55.73% 0.139 307.7)
XYZxyz(22.1717, 15.9302, 44.0177)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AB2 #82B25A
analogous
#5E5AB2 #8A5AB2 #B25AAE
triadic
#8A5AB2 #B28A5A #5AB28A
tetradic
#8A5AB2 #B25E5A #82B25A #5AAEB2
square
#8A5AB2 #B25E5A #82B25A #5AAEB2
split-complementary
#8A5AB2 #AEB25A #5AB25E
monochromatic
#4B2E63 #6B428D #8A5AB2 #A884C5 #C5ADD9

Accessibility & contrast

On white

5.02
#8A5AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A5AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AB2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AB2#FFFFFF#000000##FFFFFF
##8A5AB21.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426DB5
Deuteranopia (green-blind)
#5070B0
Tritanopia (blue-blind)
#84697E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5ab2;
/* rgb */ color: rgb(138, 90, 178);
/* oklch */ color: oklch(55.7% 0.139 307.7);
Tailwind
colors: {
  custom: {
    50: '#ae8ac9',
    500: '#8a5ab2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ab2;
$custom-light: #ae8ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ab2",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 272.727,
    "s": 36.364,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55728,
    "c": 0.13946,
    "h": 307.7
  },
  "luminance": 0.1593
}

Semantic roles & 50–950 ramp

primary
#8A5AB2
secondary
#B2C7A1
accent
#CC5B8F
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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