#8A5EB5#8A5EB5

#8A5EB5 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.6% C 0.136 H 305.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8A5EB5
RGBrgb(138, 94, 181)
HSLhsl(270, 37%, 54%)
HSVhsv(270, 48%, 71%)
CMYKcmyk(23.8%, 48.1%, 0%, 29%)
CIE-LABlab(47.94, 35.18, -39.55)
CIE-LCHlch(47.94, 52.93, 311.66°)
OKLaboklab(56.57% 0.0799 -0.1106)
OKLCHoklch(56.57% 0.136 305.8)
XYZxyz(22.8227, 16.7450, 45.7369)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EB5 #89B55E
analogous
#5F5EB5 #8A5EB5 #B55EB5
triadic
#8A5EB5 #B58A5E #5EB58A
tetradic
#8A5EB5 #B55F5E #89B55E #5EB5B5
square
#8A5EB5 #B55F5E #89B55E #5EB5B5
split-complementary
#8A5EB5 #B5B55E #5EB55F
monochromatic
#4D3069 #6B4392 #8A5EB5 #A888C8 #C7B2DC

Accessibility & contrast

On white

4.83
#8A5EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#8A5EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EB5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EB5#FFFFFF#000000##FFFFFF
##8A5EB51.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4670B8
Deuteranopia (green-blind)
#5272B3
Tritanopia (blue-blind)
#836D81
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5eb5;
/* rgb */ color: rgb(138, 94, 181);
/* oklch */ color: oklch(56.6% 0.136 305.8);
Tailwind
colors: {
  custom: {
    50: '#ae8dcb',
    500: '#8a5eb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5eb5;
$custom-light: #ae8dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5eb5",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 181
  },
  "hsl": {
    "h": 270.345,
    "s": 37.021,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56565,
    "c": 0.13649,
    "h": 305.8
  },
  "luminance": 0.16745
}

Semantic roles & 50–950 ramp

primary
#8A5EB5
secondary
#B7CAA5
accent
#CD5B93
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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