#8A5AE4#8A5AE4

#8A5AE4 is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 58.9% C 0.200 H 295.6°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A5AE4
RGBrgb(138, 90, 228)
HSLhsl(261, 72%, 62%)
HSVhsv(261, 61%, 89%)
CMYKcmyk(39.5%, 60.5%, 0%, 10.6%)
CIE-LABlab(49.88, 49.28, -63.39)
CIE-LCHlch(49.88, 80.29, 307.86°)
OKLaboklab(58.9% 0.0866 -0.1805)
OKLCHoklch(58.9% 0.2 295.6)
XYZxyz(28.1373, 18.3165, 75.4367)
Luminance0.1832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AE4 #B4E45A
analogous
#5A6FE4 #8A5AE4 #CF5AE4
triadic
#8A5AE4 #E48A5A #5AE48A
tetradic
#8A5AE4 #E45A6F #B4E45A #5AE4CF
square
#8A5AE4 #E45A6F #B4E45A #5AE4CF
split-complementary
#8A5AE4 #E4CF5A #6FE45A
monochromatic
#4C1CA8 #6525DB #8A5AE4 #AF8FED #D5C3F5

Accessibility & contrast

On white

4.50
#8A5AE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#8A5AE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5AE4
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AE4#FFFFFF#000000##000000
##8A5AE41.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#0E75E1
Tritanopia (blue-blind)
#737997
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5ae4;
/* rgb */ color: rgb(138, 90, 228);
/* oklch */ color: oklch(58.9% 0.200 295.6);
Tailwind
colors: {
  custom: {
    50: '#b28bed',
    500: '#8a5ae4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ae4;
$custom-light: #b28bed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ae4",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 228
  },
  "hsl": {
    "h": 260.87,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.58895,
    "c": 0.20022,
    "h": 295.6
  },
  "luminance": 0.18317
}

Semantic roles & 50–950 ramp

primary
#8A5AE4
secondary
#D5E6B4
accent
#D41290
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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