#8A5EB0#8A5EB0

#8A5EB0 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.3% C 0.130 H 307.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8A5EB0
RGBrgb(138, 94, 176)
HSLhsl(272, 34%, 53%)
HSVhsv(272, 47%, 69%)
CMYKcmyk(21.6%, 46.6%, 0%, 31%)
CIE-LABlab(47.68, 33.99, -37.04)
CIE-LCHlch(47.68, 50.27, 312.54°)
OKLaboklab(56.29% 0.0792 -0.1034)
OKLCHoklch(56.29% 0.13 307.5)
XYZxyz(22.3189, 16.5435, 43.0833)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EB0 #84B05E
analogous
#615EB0 #8A5EB0 #B05EAD
triadic
#8A5EB0 #B08A5E #5EB08A
tetradic
#8A5EB0 #B0615E #84B05E #5EADB0
square
#8A5EB0 #B0615E #84B05E #5EADB0
split-complementary
#8A5EB0 #ADB05E #5EB061
monochromatic
#4C3163 #6B458C #8A5EB0 #A887C4 #C6B0D8

Accessibility & contrast

On white

4.87
#8A5EB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8A5EB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EB0
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EB0#FFFFFF#000000##FFFFFF
##8A5EB01.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6FB3
Deuteranopia (green-blind)
#5572AE
Tritanopia (blue-blind)
#856B7F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5eb0;
/* rgb */ color: rgb(138, 94, 176);
/* oklch */ color: oklch(56.3% 0.130 307.5);
Tailwind
colors: {
  custom: {
    50: '#ae8dc8',
    500: '#8a5eb0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5eb0;
$custom-light: #ae8dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5eb0",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 176
  },
  "hsl": {
    "h": 272.195,
    "s": 34.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56289,
    "c": 0.13023,
    "h": 307.5
  },
  "luminance": 0.16543
}

Semantic roles & 50–950 ramp

primary
#8A5EB0
secondary
#B4C7A3
accent
#CA5E90
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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