#8A5AEE#8A5AEE

#8A5AEE is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.6% C 0.212 H 293.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8A5AEE
RGBrgb(138, 90, 238)
HSLhsl(259, 81%, 64%)
HSVhsv(259, 62%, 93%)
CMYKcmyk(42%, 62.2%, 0%, 6.7%)
CIE-LABlab(50.56, 51.90, -67.92)
CIE-LCHlch(50.56, 85.48, 307.39°)
OKLaboklab(59.6% 0.086 -0.1938)
OKLCHoklch(59.6% 0.212 293.9)
XYZxyz(29.5659, 18.8879, 82.9603)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AEE #BEEE5A
analogous
#5A74EE #8A5AEE #D45AEE
triadic
#8A5AEE #EE8A5A #5AEE8A
tetradic
#8A5AEE #EE5A74 #BEEE5A #5AEED4
square
#8A5AEE #EE5A74 #BEEE5A #5AEED4
split-complementary
#8A5AEE #EED45A #74EE5A
monochromatic
#4913BA #6323E8 #8A5AEE #B191F4 #D9C9F9

Accessibility & contrast

On white

4.40
#8A5AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#8A5AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5AEE
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AEE#FFFFFF#000000##000000
##8A5AEE1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF3
Deuteranopia (green-blind)
#0076EB
Tritanopia (blue-blind)
#6F7C9C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5aee;
/* rgb */ color: rgb(138, 90, 238);
/* oklch */ color: oklch(59.6% 0.212 293.9);
Tailwind
colors: {
  custom: {
    50: '#b38bf4',
    500: '#8a5aee',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aee;
$custom-light: #b38bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aee",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 259.459,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59603,
    "c": 0.21205,
    "h": 293.9
  },
  "luminance": 0.18889
}

Semantic roles & 50–950 ramp

primary
#8A5AEE
secondary
#DBECB8
accent
#DE0898
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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