#8A5DF9#8A5DF9

#8A5DF9 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.8% C 0.221 H 291.7°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A5DF9
RGBrgb(138, 93, 249)
HSLhsl(257, 93%, 67%)
HSVhsv(257, 63%, 98%)
CMYKcmyk(44.6%, 62.7%, 0%, 2.4%)
CIE-LABlab(51.92, 53.23, -71.86)
CIE-LCHlch(51.92, 89.42, 306.53°)
OKLaboklab(60.83% 0.082 -0.2054)
OKLCHoklch(60.83% 0.221 291.7)
XYZxyz(31.4897, 20.0705, 91.8190)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DF9 #CCF95D
analogous
#5D7EF9 #8A5DF9 #D85DF9
triadic
#8A5DF9 #F98A5D #5DF98A
tetradic
#8A5DF9 #F95D7E #CCF95D #5DF9D8
square
#8A5DF9 #F95D7E #CCF95D #5DF9D8
split-complementary
#8A5DF9 #F9D85D #7EF95D
monochromatic
#4308D4 #5F22F7 #8A5DF9 #B598FB #DFD3FD

Accessibility & contrast

On white

4.19
#8A5DF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#8A5DF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DF9
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DF9#FFFFFF#000000##000000
##8A5DF91.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFE
Deuteranopia (green-blind)
#0079F6
Tritanopia (blue-blind)
#6982A3
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a5df9;
/* rgb */ color: rgb(138, 93, 249);
/* oklch */ color: oklch(60.8% 0.221 291.7);
Tailwind
colors: {
  custom: {
    50: '#b48dfc',
    500: '#8a5df9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5df9;
$custom-light: #b48dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5df9",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 249
  },
  "hsl": {
    "h": 257.308,
    "s": 92.857,
    "l": 67.059
  },
  "oklch": {
    "l": 0.60832,
    "c": 0.22115,
    "h": 291.7
  },
  "luminance": 0.20072
}

Semantic roles & 50–950 ramp

primary
#8A5DF9
secondary
#E3F2C0
accent
#E600A3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5DF9

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

Preview Lab → · Contrast checker → · Palette generator →

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