#8A5BB5#8A5BB5

#8A5BB5 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.1% C 0.141 H 306.5°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A5BB5
RGBrgb(138, 91, 181)
HSLhsl(271, 38%, 53%)
HSVhsv(271, 50%, 71%)
CMYKcmyk(23.8%, 49.7%, 0%, 29%)
CIE-LABlab(47.26, 36.89, -40.61)
CIE-LCHlch(47.26, 54.87, 312.25°)
OKLaboklab(56.06% 0.0842 -0.1137)
OKLCHoklch(56.06% 0.141 306.5)
XYZxyz(22.5611, 16.2218, 45.6497)
Luminance0.1622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BB5 #86B55B
analogous
#5D5BB5 #8A5BB5 #B55BB3
triadic
#8A5BB5 #B58A5B #5BB58A
tetradic
#8A5BB5 #B55D5B #86B55B #5BB3B5
square
#8A5BB5 #B55D5B #86B55B #5BB3B5
split-complementary
#8A5BB5 #B3B55B #5BB55D
monochromatic
#4C2F67 #6B4291 #8A5BB5 #A885C8 #C6AFDB

Accessibility & contrast

On white

4.95
#8A5BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8A5BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BB5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BB5#FFFFFF#000000##FFFFFF
##8A5BB51.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426EB8
Deuteranopia (green-blind)
#4F70B3
Tritanopia (blue-blind)
#836B7F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5bb5;
/* rgb */ color: rgb(138, 91, 181);
/* oklch */ color: oklch(56.1% 0.141 306.5);
Tailwind
colors: {
  custom: {
    50: '#ae8bcb',
    500: '#8a5bb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bb5;
$custom-light: #ae8bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bb5",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 271.333,
    "s": 37.815,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56064,
    "c": 0.14149,
    "h": 306.5
  },
  "luminance": 0.16222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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