#8A5DEC#8A5DEC

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

Color values

HEX#8A5DEC
RGBrgb(138, 93, 236)
HSLhsl(259, 79%, 65%)
HSVhsv(259, 61%, 93%)
CMYKcmyk(41.5%, 60.6%, 0%, 7.5%)
CIE-LABlab(51.02, 49.77, -66.04)
CIE-LCHlch(51.02, 82.69, 307.00°)
OKLaboklab(59.9% 0.0829 -0.1883)
OKLCHoklch(59.9% 0.206 293.8)
XYZxyz(29.5318, 19.2873, 81.5075)
Luminance0.1929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DEC #BFEC5D
analogous
#5D78EC #8A5DEC #D25DEC
triadic
#8A5DEC #EC8A5D #5DEC8A
tetradic
#8A5DEC #EC5D78 #BFEC5D #5DECD2
square
#8A5DEC #EC5D78 #BFEC5D #5DECD2
split-complementary
#8A5DEC #ECD25D #78EC5D
monochromatic
#4916B9 #6226E6 #8A5DEC #B294F2 #D9CBF9

Accessibility & contrast

On white

4.32
#8A5DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#8A5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DEC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DEC#FFFFFF#000000##000000
##8A5DEC1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#0077E9
Tritanopia (blue-blind)
#707D9C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5dec;
/* rgb */ color: rgb(138, 93, 236);
/* oklch */ color: oklch(59.9% 0.206 293.8);
Tailwind
colors: {
  custom: {
    50: '#b28df3',
    500: '#8a5dec',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dec;
$custom-light: #b28df3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dec",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 258.881,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.59898,
    "c": 0.20574,
    "h": 293.8
  },
  "luminance": 0.19288
}

Semantic roles & 50–950 ramp

primary
#8A5DEC
secondary
#DCEBBA
accent
#DB0A99
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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