#8A5DF6#8A5DF6

#8A5DF6 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.6% C 0.218 H 292.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8A5DF6
RGBrgb(138, 93, 246)
HSLhsl(258, 89%, 66%)
HSVhsv(258, 62%, 96%)
CMYKcmyk(43.9%, 62.2%, 0%, 3.5%)
CIE-LABlab(51.71, 52.43, -70.53)
CIE-LCHlch(51.71, 87.88, 306.63°)
OKLaboklab(60.61% 0.0822 -0.2015)
OKLCHoklch(60.61% 0.218 292.2)
XYZxyz(31.0255, 19.8848, 89.3744)
Luminance0.1989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DF6 #C9F65D
analogous
#5D7DF6 #8A5DF6 #D75DF6
triadic
#8A5DF6 #F68A5D #5DF68A
tetradic
#8A5DF6 #F65D7D #C9F65D #5DF6D7
square
#8A5DF6 #F65D7D #C9F65D #5DF6D7
split-complementary
#8A5DF6 #F6D75D #7DF65D
monochromatic
#440BCD #6023F3 #8A5DF6 #B497F9 #DED1FC

Accessibility & contrast

On white

4.22
#8A5DF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8A5DF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DF6
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DF6#FFFFFF#000000##000000
##8A5DF61.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFB
Deuteranopia (green-blind)
#0078F3
Tritanopia (blue-blind)
#6B81A1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5df6;
/* rgb */ color: rgb(138, 93, 246);
/* oklch */ color: oklch(60.6% 0.218 292.2);
Tailwind
colors: {
  custom: {
    50: '#b38dfa',
    500: '#8a5df6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5df6;
$custom-light: #b38dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5df6",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 246
  },
  "hsl": {
    "h": 257.647,
    "s": 89.474,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60613,
    "c": 0.21762,
    "h": 292.2
  },
  "luminance": 0.19886
}

Semantic roles & 50–950 ramp

primary
#8A5DF6
secondary
#E2F0BF
accent
#E600A2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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