#8A5DE2#8A5DE2

#8A5DE2 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.2% C 0.194 H 295.5°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8A5DE2
RGBrgb(138, 93, 226)
HSLhsl(260, 70%, 63%)
HSVhsv(260, 59%, 89%)
CMYKcmyk(38.9%, 58.8%, 0%, 11.4%)
CIE-LABlab(50.36, 47.13, -61.48)
CIE-LCHlch(50.36, 77.47, 307.47°)
OKLaboklab(59.21% 0.0833 -0.1749)
OKLCHoklch(59.21% 0.194 295.5)
XYZxyz(28.1195, 18.7224, 74.0690)
Luminance0.1872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DE2 #B5E25D
analogous
#5D72E2 #8A5DE2 #CD5DE2
triadic
#8A5DE2 #E28A5D #5DE28A
tetradic
#8A5DE2 #E25D72 #B5E25D #5DE2CD
square
#8A5DE2 #E25D72 #B5E25D #5DE2CD
split-complementary
#8A5DE2 #E2CD5D #72E25D
monochromatic
#4C1EA7 #6529D9 #8A5DE2 #AF91EB #D5C5F5

Accessibility & contrast

On white

4.43
#8A5DE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#8A5DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DE2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DE2#FFFFFF#000000##000000
##8A5DE21.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E6
Deuteranopia (green-blind)
#2076DF
Tritanopia (blue-blind)
#747A97
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5de2;
/* rgb */ color: rgb(138, 93, 226);
/* oklch */ color: oklch(59.2% 0.194 295.5);
Tailwind
colors: {
  custom: {
    50: '#b18dec',
    500: '#8a5de2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5de2;
$custom-light: #b18dec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5de2",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 226
  },
  "hsl": {
    "h": 260.301,
    "s": 69.634,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59206,
    "c": 0.19372,
    "h": 295.5
  },
  "luminance": 0.18723
}

Semantic roles & 50–950 ramp

primary
#8A5DE2
secondary
#D5E6B5
accent
#D21491
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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