#8A5EEE#8A5EEE

#8A5EEE is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.2% C 0.207 H 293.3°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8A5EEE
RGBrgb(138, 94, 238)
HSLhsl(258, 81%, 65%)
HSVhsv(258, 61%, 93%)
CMYKcmyk(42%, 60.5%, 0%, 6.7%)
CIE-LABlab(51.36, 49.76, -66.62)
CIE-LCHlch(51.36, 83.15, 306.76°)
OKLaboklab(60.19% 0.0817 -0.19)
OKLCHoklch(60.19% 0.207 293.3)
XYZxyz(29.9124, 19.5809, 83.0758)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EEE #C2EE5E
analogous
#5E7AEE #8A5EEE #D25EEE
triadic
#8A5EEE #EE8A5E #5EEE8A
tetradic
#8A5EEE #EE5E7A #C2EE5E #5EEED2
square
#8A5EEE #EE5E7A #C2EE5E #5EEED2
split-complementary
#8A5EEE #EED25E #7AEE5E
monochromatic
#4814BE #6227E8 #8A5EEE #B295F4 #DACDFA

Accessibility & contrast

On white

4.27
#8A5EEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#8A5EEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EEE
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EEE#FFFFFF#000000##000000
##8A5EEE1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF3
Deuteranopia (green-blind)
#0078EB
Tritanopia (blue-blind)
#6F7F9D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5eee;
/* rgb */ color: rgb(138, 94, 238);
/* oklch */ color: oklch(60.2% 0.207 293.3);
Tailwind
colors: {
  custom: {
    50: '#b28df4',
    500: '#8a5eee',
    950: '#000000',
  },
}
SCSS
$custom: #8a5eee;
$custom-light: #b28df4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5eee",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 238
  },
  "hsl": {
    "h": 258.333,
    "s": 80.899,
    "l": 65.098
  },
  "oklch": {
    "l": 0.60188,
    "c": 0.20681,
    "h": 293.3
  },
  "luminance": 0.19582
}

Semantic roles & 50–950 ramp

primary
#8A5EEE
secondary
#DDECBB
accent
#DD089C
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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