#8A5EFD#8A5EFD

#8A5EFD is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.3% C 0.225 H 291.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A5EFD
RGBrgb(138, 94, 253)
HSLhsl(257, 98%, 68%)
HSVhsv(257, 63%, 99%)
CMYKcmyk(45.5%, 62.8%, 0%, 0.8%)
CIE-LABlab(52.40, 53.77, -73.30)
CIE-LCHlch(52.40, 90.91, 306.27°)
OKLaboklab(61.27% 0.0806 -0.2096)
OKLCHoklch(61.27% 0.225 291)
XYZxyz(32.2086, 20.4994, 95.1692)
Luminance0.2050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EFD #D1FD5E
analogous
#5E81FD #8A5EFD #DA5EFD
triadic
#8A5EFD #FD8A5E #5EFD8A
tetradic
#8A5EFD #FD5E81 #D1FD5E #5EFDDA
square
#8A5EFD #FD5E81 #D1FD5E #5EFDDA
split-complementary
#8A5EFD #FDDA5E #81FD5E
monochromatic
#3F03DE #5E22FC #8A5EFD #B69AFE #E2D7FF

Accessibility & contrast

On white

4.12
#8A5EFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8A5EFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EFD
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EFD#FFFFFF#000000##000000
##8A5EFD1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#007AFA
Tritanopia (blue-blind)
#6784A5
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a5efd;
/* rgb */ color: rgb(138, 94, 253);
/* oklch */ color: oklch(61.3% 0.225 291.0);
Tailwind
colors: {
  custom: {
    50: '#b48eff',
    500: '#8a5efd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5efd;
$custom-light: #b48eff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5efd",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 253
  },
  "hsl": {
    "h": 256.604,
    "s": 97.546,
    "l": 68.039
  },
  "oklch": {
    "l": 0.61269,
    "c": 0.2246,
    "h": 291
  },
  "luminance": 0.20501
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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