#8A5EA3#8A5EA3

#8A5EA3 is a mid, moderate violet. Relative luminance 0.161; OKLCH L 55.6% C 0.114 H 312.5°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A5EA3
RGBrgb(138, 94, 163)
HSLhsl(278, 27%, 50%)
HSVhsv(278, 42%, 64%)
CMYKcmyk(15.3%, 42.3%, 0%, 36.1%)
CIE-LABlab(47.04, 30.98, -30.40)
CIE-LCHlch(47.04, 43.40, 315.54°)
OKLaboklab(55.61% 0.077 -0.0842)
OKLCHoklch(55.61% 0.114 312.5)
XYZxyz(21.0937, 16.0534, 36.6307)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EA3 #77A35E
analogous
#675EA3 #8A5EA3 #A35E99
triadic
#8A5EA3 #A38A5E #5EA38A
tetradic
#8A5EA3 #A3675E #77A35E #5E99A3
square
#8A5EA3 #A3675E #77A35E #5E99A3
split-complementary
#8A5EA3 #99A35E #5EA367
monochromatic
#483156 #69477D #8A5EA3 #A685B9 #C3ACD0

Accessibility & contrast

On white

4.99
#8A5EA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8A5EA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EA3
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EA3#FFFFFF#000000##FFFFFF
##8A5EA31.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#516DA6
Deuteranopia (green-blind)
#5C71A1
Tritanopia (blue-blind)
#886879
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5ea3;
/* rgb */ color: rgb(138, 94, 163);
/* oklch */ color: oklch(55.6% 0.114 312.5);
Tailwind
colors: {
  custom: {
    50: '#ad8cbe',
    500: '#8a5ea3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ea3;
$custom-light: #ad8cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ea3",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 163
  },
  "hsl": {
    "h": 278.261,
    "s": 27.273,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55605,
    "c": 0.11408,
    "h": 312.5
  },
  "luminance": 0.16053
}

Semantic roles & 50–950 ramp

primary
#8A5EA3
secondary
#AABE9F
accent
#C46487
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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