#8A5BB9#8A5BB9

#8A5BB9 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.3% C 0.146 H 305.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8A5BB9
RGBrgb(138, 91, 185)
HSLhsl(270, 40%, 54%)
HSVhsv(270, 51%, 73%)
CMYKcmyk(25.4%, 50.8%, 0%, 27.5%)
CIE-LABlab(47.48, 37.86, -42.60)
CIE-LCHlch(47.48, 56.99, 311.63°)
OKLaboklab(56.29% 0.0846 -0.1195)
OKLCHoklch(56.29% 0.146 305.3)
XYZxyz(22.9774, 16.3884, 47.8423)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BB9 #8AB95B
analogous
#5B5BB9 #8A5BB9 #B95BB9
triadic
#8A5BB9 #B98A5B #5BB98A
tetradic
#8A5BB9 #B95B5B #8AB95B #5BB9B9
square
#8A5BB9 #B95B5B #8AB95B #5BB9B9
split-complementary
#8A5BB9 #B9B95B #5BB95B
monochromatic
#4D2E6C #6B4097 #8A5BB9 #A986CB #C7B1DE

Accessibility & contrast

On white

4.91
#8A5BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#8A5BB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BB9
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BB9#FFFFFF#000000##FFFFFF
##8A5BB91.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6FBC
Deuteranopia (green-blind)
#4C71B7
Tritanopia (blue-blind)
#826C81
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5bb9;
/* rgb */ color: rgb(138, 91, 185);
/* oklch */ color: oklch(56.3% 0.146 305.3);
Tailwind
colors: {
  custom: {
    50: '#ae8bce',
    500: '#8a5bb9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bb9;
$custom-light: #ae8bce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bb9",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 185
  },
  "hsl": {
    "h": 270,
    "s": 40.171,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56294,
    "c": 0.14642,
    "h": 305.3
  },
  "luminance": 0.16388
}

Semantic roles & 50–950 ramp

primary
#8A5BB9
secondary
#B8CCA4
accent
#D05894
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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