#8A5DEE#8A5DEE

#8A5DEE is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.0% C 0.208 H 293.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A5DEE
RGBrgb(138, 93, 238)
HSLhsl(259, 81%, 65%)
HSVhsv(259, 61%, 93%)
CMYKcmyk(42%, 60.9%, 0%, 6.7%)
CIE-LABlab(51.16, 50.30, -66.95)
CIE-LCHlch(51.16, 83.73, 306.92°)
OKLaboklab(60.04% 0.0828 -0.191)
OKLCHoklch(60.04% 0.208 293.4)
XYZxyz(29.8240, 19.4042, 83.0464)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DEE #C1EE5D
analogous
#5D78EE #8A5DEE #D35DEE
triadic
#8A5DEE #EE8A5D #5DEE8A
tetradic
#8A5DEE #EE5D78 #C1EE5D #5DEED3
square
#8A5DEE #EE5D78 #C1EE5D #5DEED3
split-complementary
#8A5DEE #EED35D #78EE5D
monochromatic
#4814BD #6226E8 #8A5DEE #B294F4 #DACCFA

Accessibility & contrast

On white

4.30
#8A5DEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#8A5DEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DEE
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DEE#FFFFFF#000000##000000
##8A5DEE1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a5dee;
/* rgb */ color: rgb(138, 93, 238);
/* oklch */ color: oklch(60.0% 0.208 293.4);
Tailwind
colors: {
  custom: {
    50: '#b28df4',
    500: '#8a5dee',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dee;
$custom-light: #b28df4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dee",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 238
  },
  "hsl": {
    "h": 258.621,
    "s": 81.006,
    "l": 64.902
  },
  "oklch": {
    "l": 0.6004,
    "c": 0.20813,
    "h": 293.4
  },
  "luminance": 0.19405
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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