#8A5EAA#8A5EAA

#8A5EAA is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.0% C 0.123 H 309.6°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A5EAA
RGBrgb(138, 94, 170)
HSLhsl(275, 31%, 52%)
HSVhsv(275, 45%, 67%)
CMYKcmyk(18.8%, 44.7%, 0%, 33.3%)
CIE-LABlab(47.38, 32.58, -33.99)
CIE-LCHlch(47.38, 47.09, 313.79°)
OKLaboklab(55.97% 0.0783 -0.0945)
OKLCHoklch(55.97% 0.123 309.6)
XYZxyz(21.7383, 16.3113, 40.0256)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EAA #7EAA5E
analogous
#645EAA #8A5EAA #AA5EA4
triadic
#8A5EAA #AA8A5E #5EAA8A
tetradic
#8A5EAA #AA645E #7EAA5E #5EA4AA
square
#8A5EAA #AA645E #7EAA5E #5EA4AA
split-complementary
#8A5EAA #A4AA5E #5EAA64
monochromatic
#4A315D #6A4685 #8A5EAA #A786BF #C4AED4

Accessibility & contrast

On white

4.93
#8A5EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8A5EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EAA
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EAA#FFFFFF#000000##FFFFFF
##8A5EAA1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6EAD
Deuteranopia (green-blind)
#5871A8
Tritanopia (blue-blind)
#866A7C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5eaa;
/* rgb */ color: rgb(138, 94, 170);
/* oklch */ color: oklch(56.0% 0.123 309.6);
Tailwind
colors: {
  custom: {
    50: '#ae8cc3',
    500: '#8a5eaa',
    950: '#000000',
  },
}
SCSS
$custom: #8a5eaa;
$custom-light: #ae8cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5eaa",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 170
  },
  "hsl": {
    "h": 274.737,
    "s": 30.894,
    "l": 51.765
  },
  "oklch": {
    "l": 0.55967,
    "c": 0.12275,
    "h": 309.6
  },
  "luminance": 0.16311
}

Semantic roles & 50–950 ramp

primary
#8A5EAA
secondary
#AFC3A1
accent
#C7618C
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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