#8A5ED9#8A5ED9

#8A5ED9 is a mid, vivid violet. Relative luminance 0.184; OKLCH L 58.8% C 0.181 H 297.0°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#8A5ED9
RGBrgb(138, 94, 217)
HSLhsl(261, 62%, 61%)
HSVhsv(261, 57%, 85%)
CMYKcmyk(36.4%, 56.7%, 0%, 14.9%)
CIE-LABlab(50.00, 44.23, -56.96)
CIE-LCHlch(50.00, 72.12, 307.82°)
OKLaboklab(58.76% 0.0822 -0.1616)
OKLCHoklch(58.76% 0.181 297)
XYZxyz(27.0052, 18.4180, 67.7644)
Luminance0.1842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5ED9 #ADD95E
analogous
#5E6FD9 #8A5ED9 #C75ED9
triadic
#8A5ED9 #D98A5E #5ED98A
tetradic
#8A5ED9 #D95E6F #ADD95E #5ED9C7
square
#8A5ED9 #D95E6F #ADD95E #5ED9C7
split-complementary
#8A5ED9 #D9C75E #6FD95E
monochromatic
#4E2499 #6730CA #8A5ED9 #AE90E5 #D2C1F0

Accessibility & contrast

On white

4.48
#8A5ED9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#8A5ED9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5ED9
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5ED9#FFFFFF#000000##000000
##8A5ED91.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2077DD
Deuteranopia (green-blind)
#3275D6
Tritanopia (blue-blind)
#787892
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5ed9;
/* rgb */ color: rgb(138, 94, 217);
/* oklch */ color: oklch(58.8% 0.181 297.0);
Tailwind
colors: {
  custom: {
    50: '#b18de5',
    500: '#8a5ed9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ed9;
$custom-light: #b18de5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ed9",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 217
  },
  "hsl": {
    "h": 261.463,
    "s": 61.809,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58758,
    "c": 0.18134,
    "h": 297
  },
  "luminance": 0.18418
}

Semantic roles & 50–950 ramp

primary
#8A5ED9
secondary
#D0E1B2
accent
#CA1C8B
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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