#8A5EA4#8A5EA4

#8A5EA4 is a mid, moderate violet. Relative luminance 0.161; OKLCH L 55.7% C 0.115 H 312.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8A5EA4
RGBrgb(138, 94, 164)
HSLhsl(278, 28%, 51%)
HSVhsv(278, 43%, 64%)
CMYKcmyk(15.9%, 42.7%, 0%, 35.7%)
CIE-LABlab(47.09, 31.20, -30.92)
CIE-LCHlch(47.09, 43.93, 315.26°)
OKLaboklab(55.66% 0.0772 -0.0856)
OKLCHoklch(55.66% 0.115 312)
XYZxyz(21.1836, 16.0894, 37.1044)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EA4 #78A45E
analogous
#675EA4 #8A5EA4 #A45E9B
triadic
#8A5EA4 #A48A5E #5EA48A
tetradic
#8A5EA4 #A4675E #78A45E #5E9BA4
square
#8A5EA4 #A4675E #78A45E #5E9BA4
split-complementary
#8A5EA4 #9BA45E #5EA467
monochromatic
#493157 #69477E #8A5EA4 #A685BA #C3ACD0

Accessibility & contrast

On white

4.98
#8A5EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#8A5EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EA4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EA4#FFFFFF#000000##FFFFFF
##8A5EA41.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506DA7
Deuteranopia (green-blind)
#5B71A2
Tritanopia (blue-blind)
#876879
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5ea4;
/* rgb */ color: rgb(138, 94, 164);
/* oklch */ color: oklch(55.7% 0.115 312.0);
Tailwind
colors: {
  custom: {
    50: '#ad8cbf',
    500: '#8a5ea4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ea4;
$custom-light: #ad8cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ea4",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 164
  },
  "hsl": {
    "h": 277.714,
    "s": 27.778,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55656,
    "c": 0.11531,
    "h": 312
  },
  "luminance": 0.16089
}

Semantic roles & 50–950 ramp

primary
#8A5EA4
secondary
#ABBE9F
accent
#C46488
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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