#8A5BAD#8A5BAD

#8A5BAD is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.6% C 0.132 H 309.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8A5BAD
RGBrgb(138, 91, 173)
HSLhsl(274, 33%, 52%)
HSVhsv(274, 47%, 68%)
CMYKcmyk(20.2%, 47.4%, 0%, 32.2%)
CIE-LABlab(46.85, 35.00, -36.59)
CIE-LCHlch(46.85, 50.64, 313.73°)
OKLaboklab(55.62% 0.0831 -0.1021)
OKLCHoklch(55.62% 0.132 309.2)
XYZxyz(21.7637, 15.9029, 41.4501)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BAD #7EAD5B
analogous
#615BAD #8A5BAD #AD5BA7
triadic
#8A5BAD #AD8A5B #5BAD8A
tetradic
#8A5BAD #AD615B #7EAD5B #5BA7AD
square
#8A5BAD #AD615B #7EAD5B #5BA7AD
split-complementary
#8A5BAD #A7AD5B #5BAD61
monochromatic
#4A2F5E #6A4487 #8A5BAD #A784C1 #C4ADD6

Accessibility & contrast

On white

5.02
#8A5BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8A5BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BAD
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BAD#FFFFFF#000000##FFFFFF
##8A5BAD1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476DB0
Deuteranopia (green-blind)
#5470AB
Tritanopia (blue-blind)
#85687C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5bad;
/* rgb */ color: rgb(138, 91, 173);
/* oklch */ color: oklch(55.6% 0.132 309.2);
Tailwind
colors: {
  custom: {
    50: '#ae8ac6',
    500: '#8a5bad',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bad;
$custom-light: #ae8ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bad",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 173
  },
  "hsl": {
    "h": 274.39,
    "s": 33.333,
    "l": 51.765
  },
  "oklch": {
    "l": 0.55617,
    "c": 0.13164,
    "h": 309.2
  },
  "luminance": 0.15903
}

Semantic roles & 50–950 ramp

primary
#8A5BAD
secondary
#AFC4A0
accent
#C95E8C
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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