#8A5EB4#8A5EB4

#8A5EB4 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.5% C 0.135 H 306.2°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8A5EB4
RGBrgb(138, 94, 180)
HSLhsl(271, 36%, 54%)
HSVhsv(271, 48%, 71%)
CMYKcmyk(23.3%, 47.8%, 0%, 29.4%)
CIE-LABlab(47.88, 34.94, -39.05)
CIE-LCHlch(47.88, 52.40, 311.83°)
OKLaboklab(56.51% 0.0798 -0.1092)
OKLCHoklch(56.51% 0.135 306.2)
XYZxyz(22.7205, 16.7041, 45.1984)
Luminance0.1670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EB4 #88B45E
analogous
#5F5EB4 #8A5EB4 #B45EB3
triadic
#8A5EB4 #B48A5E #5EB48A
tetradic
#8A5EB4 #B45F5E #88B45E #5EB3B4
square
#8A5EB4 #B45F5E #88B45E #5EB3B4
split-complementary
#8A5EB4 #B3B45E #5EB45F
monochromatic
#4C3067 #6B4491 #8A5EB4 #A888C7 #C7B1DB

Accessibility & contrast

On white

4.84
#8A5EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#8A5EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EB4
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EB4#FFFFFF#000000##FFFFFF
##8A5EB41.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4770B7
Deuteranopia (green-blind)
#5372B2
Tritanopia (blue-blind)
#846D80
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5eb4;
/* rgb */ color: rgb(138, 94, 180);
/* oklch */ color: oklch(56.5% 0.135 306.2);
Tailwind
colors: {
  custom: {
    50: '#ae8dcb',
    500: '#8a5eb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5eb4;
$custom-light: #ae8dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5eb4",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 180
  },
  "hsl": {
    "h": 270.698,
    "s": 36.441,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56509,
    "c": 0.13524,
    "h": 306.2
  },
  "luminance": 0.16704
}

Semantic roles & 50–950 ramp

primary
#8A5EB4
secondary
#B6C9A5
accent
#CC5B93
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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