#8A5EB3#8A5EB3

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

Color values

HEX#8A5EB3
RGBrgb(138, 94, 179)
HSLhsl(271, 36%, 54%)
HSVhsv(271, 47%, 70%)
CMYKcmyk(22.9%, 47.5%, 0%, 29.8%)
CIE-LABlab(47.83, 34.70, -38.55)
CIE-LCHlch(47.83, 51.87, 312.00°)
OKLaboklab(56.45% 0.0797 -0.1077)
OKLCHoklch(56.45% 0.134 306.5)
XYZxyz(22.6190, 16.6635, 44.6639)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EB3 #87B35E
analogous
#5F5EB3 #8A5EB3 #B35EB1
triadic
#8A5EB3 #B38A5E #5EB38A
tetradic
#8A5EB3 #B35F5E #87B35E #5EB1B3
square
#8A5EB3 #B35F5E #87B35E #5EB1B3
split-complementary
#8A5EB3 #B1B35E #5EB35F
monochromatic
#4C3066 #6B4490 #8A5EB3 #A888C7 #C6B1DA

Accessibility & contrast

On white

4.85
#8A5EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#8A5EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EB3
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EB3#FFFFFF#000000##FFFFFF
##8A5EB31.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4870B6
Deuteranopia (green-blind)
#5372B1
Tritanopia (blue-blind)
#846C80
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5eb3;
/* rgb */ color: rgb(138, 94, 179);
/* oklch */ color: oklch(56.5% 0.134 306.5);
Tailwind
colors: {
  custom: {
    50: '#ae8dca',
    500: '#8a5eb3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5eb3;
$custom-light: #ae8dca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5eb3",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 179
  },
  "hsl": {
    "h": 271.059,
    "s": 35.865,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56454,
    "c": 0.13399,
    "h": 306.5
  },
  "luminance": 0.16663
}

Semantic roles & 50–950 ramp

primary
#8A5EB3
secondary
#B6C9A4
accent
#CC5C92
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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