#8A5ABB#8A5ABB

#8A5ABB is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.2% C 0.151 H 304.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A5ABB
RGBrgb(138, 90, 187)
HSLhsl(270, 42%, 54%)
HSVhsv(270, 52%, 73%)
CMYKcmyk(26.2%, 51.9%, 0%, 26.7%)
CIE-LABlab(47.37, 38.90, -43.94)
CIE-LCHlch(47.37, 58.68, 311.52°)
OKLaboklab(56.25% 0.0861 -0.1234)
OKLCHoklch(56.25% 0.151 304.9)
XYZxyz(23.1051, 16.3036, 48.9338)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ABB #8BBB5A
analogous
#5A5BBB #8A5ABB #BB5ABB
triadic
#8A5ABB #BB8A5A #5ABB8A
tetradic
#8A5ABB #BB5A5B #8BBB5A #5ABBBB
square
#8A5ABB #BB5A5B #8BBB5A #5ABBBB
split-complementary
#8A5ABB #BBBB5A #5BBB5A
monochromatic
#4D2D6D #6B3F99 #8A5ABB #A985CD #C7B1DF

Accessibility & contrast

On white

4.93
#8A5ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8A5ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5ABB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ABB#FFFFFF#000000##FFFFFF
##8A5ABB1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6FBE
Deuteranopia (green-blind)
#4A70B9
Tritanopia (blue-blind)
#826C82
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5abb;
/* rgb */ color: rgb(138, 90, 187);
/* oklch */ color: oklch(56.2% 0.151 304.9);
Tailwind
colors: {
  custom: {
    50: '#af8ad0',
    500: '#8a5abb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5abb;
$custom-light: #af8ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5abb",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 187
  },
  "hsl": {
    "h": 269.691,
    "s": 41.631,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56249,
    "c": 0.15051,
    "h": 304.9
  },
  "luminance": 0.16303
}

Semantic roles & 50–950 ramp

primary
#8A5ABB
secondary
#B9CDA4
accent
#D15695
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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