#8A5EEA#8A5EEA

#8A5EEA is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 59.9% C 0.202 H 293.9°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8A5EEA
RGBrgb(138, 94, 234)
HSLhsl(259, 77%, 64%)
HSVhsv(259, 60%, 92%)
CMYKcmyk(41%, 59.8%, 0%, 8.2%)
CIE-LABlab(51.09, 48.69, -64.81)
CIE-LCHlch(51.09, 81.06, 306.92°)
OKLaboklab(59.91% 0.0819 -0.1847)
OKLCHoklch(59.91% 0.202 293.9)
XYZxyz(29.3312, 19.3485, 80.0152)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EEA #BEEA5E
analogous
#5E78EA #8A5EEA #D05EEA
triadic
#8A5EEA #EA8A5E #5EEA8A
tetradic
#8A5EEA #EA5E78 #BEEA5E #5EEAD0
square
#8A5EEA #EA5E78 #BEEA5E #5EEAD0
split-complementary
#8A5EEA #EAD05E #78EA5E
monochromatic
#4918B6 #6328E3 #8A5EEA #B194F1 #D9CAF8

Accessibility & contrast

On white

4.31
#8A5EEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8A5EEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EEA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EEA#FFFFFF#000000##000000
##8A5EEA1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEF
Deuteranopia (green-blind)
#0777E7
Tritanopia (blue-blind)
#707D9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5eea;
/* rgb */ color: rgb(138, 94, 234);
/* oklch */ color: oklch(59.9% 0.202 293.9);
Tailwind
colors: {
  custom: {
    50: '#b28df2',
    500: '#8a5eea',
    950: '#000000',
  },
}
SCSS
$custom: #8a5eea;
$custom-light: #b28df2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5eea",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 234
  },
  "hsl": {
    "h": 258.857,
    "s": 76.923,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59908,
    "c": 0.202,
    "h": 293.9
  },
  "luminance": 0.19349
}

Semantic roles & 50–950 ramp

primary
#8A5EEA
secondary
#DBEABA
accent
#D90C99
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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