#8A5DF7#8A5DF7

#8A5DF7 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.7% C 0.219 H 292.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A5DF7
RGBrgb(138, 93, 247)
HSLhsl(258, 91%, 67%)
HSVhsv(258, 62%, 97%)
CMYKcmyk(44.1%, 62.3%, 0%, 3.1%)
CIE-LABlab(51.78, 52.70, -70.97)
CIE-LCHlch(51.78, 88.39, 306.59°)
OKLaboklab(60.69% 0.0821 -0.2028)
OKLCHoklch(60.69% 0.219 292)
XYZxyz(31.1794, 19.9464, 90.1849)
Luminance0.1995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DF7 #CAF75D
analogous
#5D7DF7 #8A5DF7 #D75DF7
triadic
#8A5DF7 #F78A5D #5DF78A
tetradic
#8A5DF7 #F75D7D #CAF75D #5DF7D7
square
#8A5DF7 #F75D7D #CAF75D #5DF7D7
split-complementary
#8A5DF7 #F7D75D #7DF75D
monochromatic
#440ACF #6023F4 #8A5DF7 #B497FA #DED2FD

Accessibility & contrast

On white

4.21
#8A5DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#8A5DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DF7
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DF7#FFFFFF#000000##000000
##8A5DF71.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFC
Deuteranopia (green-blind)
#0078F4
Tritanopia (blue-blind)
#6A81A2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5df7;
/* rgb */ color: rgb(138, 93, 247);
/* oklch */ color: oklch(60.7% 0.219 292.0);
Tailwind
colors: {
  custom: {
    50: '#b38dfb',
    500: '#8a5df7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5df7;
$custom-light: #b38dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5df7",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 247
  },
  "hsl": {
    "h": 257.532,
    "s": 90.588,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60686,
    "c": 0.2188,
    "h": 292
  },
  "luminance": 0.19947
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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