#8A5EA9#8A5EA9

#8A5EA9 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 55.9% C 0.121 H 310.0°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A5EA9
RGBrgb(138, 94, 169)
HSLhsl(275, 30%, 52%)
HSVhsv(275, 44%, 66%)
CMYKcmyk(18.3%, 44.4%, 0%, 33.7%)
CIE-LABlab(47.33, 32.35, -33.48)
CIE-LCHlch(47.33, 46.56, 314.01°)
OKLaboklab(55.91% 0.0781 -0.0931)
OKLCHoklch(55.91% 0.122 310)
XYZxyz(21.6441, 16.2736, 39.5293)
Luminance0.1627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EA9 #7DA95E
analogous
#655EA9 #8A5EA9 #A95EA3
triadic
#8A5EA9 #A98A5E #5EA98A
tetradic
#8A5EA9 #A9655E #7DA95E #5EA3A9
square
#8A5EA9 #A9655E #7DA95E #5EA3A9
split-complementary
#8A5EA9 #A3A95E #5EA965
monochromatic
#4A315C #6A4684 #8A5EA9 #A786BE #C4AED4

Accessibility & contrast

On white

4.94
#8A5EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8A5EA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EA9
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EA9#FFFFFF#000000##FFFFFF
##8A5EA91.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6EAC
Deuteranopia (green-blind)
#5971A7
Tritanopia (blue-blind)
#866A7B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5ea9;
/* rgb */ color: rgb(138, 94, 169);
/* oklch */ color: oklch(55.9% 0.121 310.0);
Tailwind
colors: {
  custom: {
    50: '#ad8cc3',
    500: '#8a5ea9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ea9;
$custom-light: #ad8cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ea9",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 169
  },
  "hsl": {
    "h": 275.2,
    "s": 30.364,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55914,
    "c": 0.1215,
    "h": 310
  },
  "luminance": 0.16273
}

Semantic roles & 50–950 ramp

primary
#8A5EA9
secondary
#AFC2A1
accent
#C7618B
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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