#8A5DF0#8A5DF0

#8A5DF0 is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.2% C 0.211 H 293.1°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8A5DF0
RGBrgb(138, 93, 240)
HSLhsl(258, 83%, 65%)
HSVhsv(258, 61%, 94%)
CMYKcmyk(42.5%, 61.2%, 0%, 5.9%)
CIE-LABlab(51.29, 50.83, -67.84)
CIE-LCHlch(51.29, 84.77, 306.84°)
OKLaboklab(60.18% 0.0826 -0.1936)
OKLCHoklch(60.18% 0.211 293.1)
XYZxyz(30.1195, 19.5224, 84.6024)
Luminance0.1952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DF0 #C3F05D
analogous
#5D7AF0 #8A5DF0 #D35DF0
triadic
#8A5DF0 #F08A5D #5DF08A
tetradic
#8A5DF0 #F05D7A #C3F05D #5DF0D3
square
#8A5DF0 #F05D7A #C3F05D #5DF0D3
split-complementary
#8A5DF0 #F0D35D #7AF05D
monochromatic
#4712C1 #6225EB #8A5DF0 #B295F5 #DBCDFA

Accessibility & contrast

On white

4.28
#8A5DF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#8A5DF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DF0
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DF0#FFFFFF#000000##000000
##8A5DF01.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF5
Deuteranopia (green-blind)
#0077ED
Tritanopia (blue-blind)
#6E7F9E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5df0;
/* rgb */ color: rgb(138, 93, 240);
/* oklch */ color: oklch(60.2% 0.211 293.1);
Tailwind
colors: {
  custom: {
    50: '#b38df6',
    500: '#8a5df0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5df0;
$custom-light: #b38df6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5df0",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 240
  },
  "hsl": {
    "h": 258.367,
    "s": 83.051,
    "l": 65.294
  },
  "oklch": {
    "l": 0.60182,
    "c": 0.21051,
    "h": 293.1
  },
  "luminance": 0.19523
}

Semantic roles & 50–950 ramp

primary
#8A5DF0
secondary
#DEEDBC
accent
#DF069D
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5DF0

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

Preview Lab → · Contrast checker → · Palette generator →

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