#8A5BB6#8A5BB6

#8A5BB6 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.1% C 0.143 H 306.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A5BB6
RGBrgb(138, 91, 182)
HSLhsl(271, 38%, 54%)
HSVhsv(271, 50%, 71%)
CMYKcmyk(24.2%, 50%, 0%, 28.6%)
CIE-LABlab(47.32, 37.13, -41.11)
CIE-LCHlch(47.32, 55.40, 312.09°)
OKLaboklab(56.12% 0.0843 -0.1152)
OKLCHoklch(56.12% 0.143 306.2)
XYZxyz(22.6641, 16.2630, 46.1920)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BB6 #87B65B
analogous
#5C5BB6 #8A5BB6 #B65BB4
triadic
#8A5BB6 #B68A5B #5BB68A
tetradic
#8A5BB6 #B65C5B #87B65B #5BB4B6
square
#8A5BB6 #B65C5B #87B65B #5BB4B6
split-complementary
#8A5BB6 #B4B65B #5BB65C
monochromatic
#4C2E68 #6B4193 #8A5BB6 #A885C9 #C6B0DC

Accessibility & contrast

On white

4.94
#8A5BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8A5BB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BB6
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BB6#FFFFFF#000000##FFFFFF
##8A5BB61.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416FB9
Deuteranopia (green-blind)
#4E71B4
Tritanopia (blue-blind)
#836B80
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5bb6;
/* rgb */ color: rgb(138, 91, 182);
/* oklch */ color: oklch(56.1% 0.143 306.2);
Tailwind
colors: {
  custom: {
    50: '#ae8bcc',
    500: '#8a5bb6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bb6;
$custom-light: #ae8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bb6",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 182
  },
  "hsl": {
    "h": 270.989,
    "s": 38.397,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56121,
    "c": 0.14272,
    "h": 306.2
  },
  "luminance": 0.16263
}

Semantic roles & 50–950 ramp

primary
#8A5BB6
secondary
#B6CAA3
accent
#CE5992
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C13
muted
#807D82

Preview Lab

Preview with #8A5BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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