#8A59BB#8A59BB

#8A59BB is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.1% C 0.152 H 305.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8A59BB
RGBrgb(138, 89, 187)
HSLhsl(270, 42%, 54%)
HSVhsv(270, 52%, 73%)
CMYKcmyk(26.2%, 52.4%, 0%, 26.7%)
CIE-LABlab(47.15, 39.47, -44.28)
CIE-LCHlch(47.15, 59.32, 311.71°)
OKLaboklab(56.09% 0.0875 -0.1244)
OKLCHoklch(56.09% 0.152 305.1)
XYZxyz(23.0213, 16.1360, 48.9058)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A59BB #8ABB59
analogous
#5959BB #8A59BB #BB59BB
triadic
#8A59BB #BB8A59 #59BB8A
tetradic
#8A59BB #BB5959 #8ABB59 #59BBBB
square
#8A59BB #BB5959 #8ABB59 #59BBBB
split-complementary
#8A59BB #BBBB59 #59BB59
monochromatic
#4D2D6D #6B3E98 #8A59BB #A984CD #C7B0DF

Accessibility & contrast

On white

4.97
#8A59BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8A59BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A59BB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A59BB#FFFFFF#000000##FFFFFF
##8A59BB1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6EBE
Deuteranopia (green-blind)
#4970B9
Tritanopia (blue-blind)
#826B81
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a59bb;
/* rgb */ color: rgb(138, 89, 187);
/* oklch */ color: oklch(56.1% 0.152 305.1);
Tailwind
colors: {
  custom: {
    50: '#af89d0',
    500: '#8a59bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a59bb;
$custom-light: #af89d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a59bb",
  "rgb": {
    "r": 138,
    "g": 89,
    "b": 187
  },
  "hsl": {
    "h": 270,
    "s": 41.88,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56087,
    "c": 0.15211,
    "h": 305.1
  },
  "luminance": 0.16136
}

Semantic roles & 50–950 ramp

primary
#8A59BB
secondary
#B8CDA3
accent
#D25694
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A59BB

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

Preview Lab → · Contrast checker → · Palette generator →

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