#8A5EA8#8A5EA8

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

Color values

HEX#8A5EA8
RGBrgb(138, 94, 168)
HSLhsl(276, 30%, 51%)
HSVhsv(276, 44%, 66%)
CMYKcmyk(17.9%, 44%, 0%, 34.1%)
CIE-LABlab(47.28, 32.12, -32.97)
CIE-LCHlch(47.28, 46.03, 314.25°)
OKLaboklab(55.86% 0.0779 -0.0916)
OKLCHoklch(55.86% 0.12 310.4)
XYZxyz(21.5505, 16.2362, 39.0368)
Luminance0.1624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EA8 #7CA85E
analogous
#655EA8 #8A5EA8 #A85EA1
triadic
#8A5EA8 #A88A5E #5EA88A
tetradic
#8A5EA8 #A8655E #7CA85E #5EA1A8
square
#8A5EA8 #A8655E #7CA85E #5EA1A8
split-complementary
#8A5EA8 #A1A85E #5EA865
monochromatic
#4A315B #6A4682 #8A5EA8 #A786BD #C4ADD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5EA8#FFFFFF#000000##FFFFFF
##8A5EA81.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)
#4E6EAB
Deuteranopia (green-blind)
#5971A6
Tritanopia (blue-blind)
#87697B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5ea8;
/* rgb */ color: rgb(138, 94, 168);
/* oklch */ color: oklch(55.9% 0.120 310.4);
Tailwind
colors: {
  custom: {
    50: '#ad8cc2',
    500: '#8a5ea8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ea8;
$custom-light: #ad8cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ea8",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 168
  },
  "hsl": {
    "h": 275.676,
    "s": 29.839,
    "l": 51.373
  },
  "oklch": {
    "l": 0.55862,
    "c": 0.12026,
    "h": 310.4
  },
  "luminance": 0.16236
}

Semantic roles & 50–950 ramp

primary
#8A5EA8
secondary
#AEC1A1
accent
#C6628A
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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