#8A5EFE#8A5EFE

#8A5EFE is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.3% C 0.226 H 290.9°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A5EFE
RGBrgb(138, 94, 254)
HSLhsl(257, 99%, 68%)
HSVhsv(257, 63%, 100%)
CMYKcmyk(45.7%, 63%, 0%, 0.4%)
CIE-LABlab(52.47, 54.04, -73.74)
CIE-LCHlch(52.47, 91.42, 306.24°)
OKLaboklab(61.34% 0.0805 -0.2109)
OKLCHoklch(61.34% 0.226 290.9)
XYZxyz(32.3683, 20.5633, 96.0104)
Luminance0.2056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EFE #D2FE5E
analogous
#5E82FE #8A5EFE #DA5EFE
triadic
#8A5EFE #FE8A5E #5EFE8A
tetradic
#8A5EFE #FE5E82 #D2FE5E #5EFEDA
square
#8A5EFE #FE5E82 #D2FE5E #5EFEDA
split-complementary
#8A5EFE #FEDA5E #82FE5E
monochromatic
#3F01E0 #5E21FE #8A5EFE #B69BFE #E2D8FF

Accessibility & contrast

On white

4.11
#8A5EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8A5EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EFE
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EFE#FFFFFF#000000##000000
##8A5EFE1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#007AFB
Tritanopia (blue-blind)
#6684A6
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a5efe;
/* rgb */ color: rgb(138, 94, 254);
/* oklch */ color: oklch(61.3% 0.226 290.9);
Tailwind
colors: {
  custom: {
    50: '#b48eff',
    500: '#8a5efe',
    950: '#000000',
  },
}
SCSS
$custom: #8a5efe;
$custom-light: #b48eff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5efe",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 254
  },
  "hsl": {
    "h": 256.5,
    "s": 98.765,
    "l": 68.235
  },
  "oklch": {
    "l": 0.61343,
    "c": 0.22577,
    "h": 290.9
  },
  "luminance": 0.20564
}

Semantic roles & 50–950 ramp

primary
#8A5EFE
secondary
#E7F4C4
accent
#E600A6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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