#8A59B1#8A59B1

#8A59B1 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.5% C 0.140 H 308.2°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A59B1
RGBrgb(138, 89, 177)
HSLhsl(273, 36%, 52%)
HSVhsv(273, 50%, 69%)
CMYKcmyk(22%, 49.7%, 0%, 30.6%)
CIE-LABlab(46.61, 37.07, -39.31)
CIE-LCHlch(46.61, 54.04, 313.32°)
OKLaboklab(55.51% 0.0865 -0.11)
OKLCHoklch(55.51% 0.14 308.2)
XYZxyz(21.9879, 15.7226, 43.4629)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A59B1 #80B159
analogous
#5E59B1 #8A59B1 #B159AC
triadic
#8A59B1 #B18A59 #59B18A
tetradic
#8A59B1 #B15E59 #80B159 #59ACB1
square
#8A59B1 #B15E59 #80B159 #59ACB1
split-complementary
#8A59B1 #ACB159 #59B15E
monochromatic
#4B2E62 #6B418B #8A59B1 #A783C5 #C5ACD8

Accessibility & contrast

On white

5.07
#8A59B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8A59B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A59B1
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A59B1#FFFFFF#000000##FFFFFF
##8A59B11.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426CB4
Deuteranopia (green-blind)
#4F6FAF
Tritanopia (blue-blind)
#85687D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a59b1;
/* rgb */ color: rgb(138, 89, 177);
/* oklch */ color: oklch(55.5% 0.140 308.2);
Tailwind
colors: {
  custom: {
    50: '#ae89c9',
    500: '#8a59b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a59b1;
$custom-light: #ae89c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a59b1",
  "rgb": {
    "r": 138,
    "g": 89,
    "b": 177
  },
  "hsl": {
    "h": 273.409,
    "s": 36.066,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55507,
    "c": 0.13991,
    "h": 308.2
  },
  "luminance": 0.15722
}

Semantic roles & 50–950 ramp

primary
#8A59B1
secondary
#B1C6A0
accent
#CC5C8E
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A59B1

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

Preview Lab → · Contrast checker → · Palette generator →

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