#8A5ABF#8A5ABF

#8A5ABF is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.5% C 0.155 H 303.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A5ABF
RGBrgb(138, 90, 191)
HSLhsl(269, 44%, 55%)
HSVhsv(269, 53%, 75%)
CMYKcmyk(27.7%, 52.9%, 0%, 25.1%)
CIE-LABlab(47.59, 39.88, -45.90)
CIE-LCHlch(47.59, 60.80, 310.99°)
OKLaboklab(56.49% 0.0864 -0.1292)
OKLCHoklch(56.49% 0.155 303.8)
XYZxyz(23.5393, 16.4773, 51.2204)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ABF #8FBF5A
analogous
#5A5CBF #8A5ABF #BD5ABF
triadic
#8A5ABF #BF8A5A #5ABF8A
tetradic
#8A5ABF #BF5A5C #8FBF5A #5ABFBD
square
#8A5ABF #BF5A5C #8FBF5A #5ABFBD
split-complementary
#8A5ABF #BFBD5A #5CBF5A
monochromatic
#4E2C72 #6C3D9E #8A5ABF #A986D0 #C9B2E1

Accessibility & contrast

On white

4.89
#8A5ABF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8A5ABF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5ABF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ABF#FFFFFF#000000##FFFFFF
##8A5ABF1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3870C2
Deuteranopia (green-blind)
#4771BD
Tritanopia (blue-blind)
#816D84
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5abf;
/* rgb */ color: rgb(138, 90, 191);
/* oklch */ color: oklch(56.5% 0.155 303.8);
Tailwind
colors: {
  custom: {
    50: '#af8ad3',
    500: '#8a5abf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5abf;
$custom-light: #af8ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5abf",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 191
  },
  "hsl": {
    "h": 268.515,
    "s": 44.105,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56487,
    "c": 0.15542,
    "h": 303.8
  },
  "luminance": 0.16477
}

Semantic roles & 50–950 ramp

primary
#8A5ABF
secondary
#BBD0A5
accent
#D45497
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5ABF

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

Preview Lab → · Contrast checker → · Palette generator →

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