#8A5AF0#8A5AF0

#8A5AF0 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.7% C 0.214 H 293.6°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8A5AF0
RGBrgb(138, 90, 240)
HSLhsl(259, 83%, 65%)
HSVhsv(259, 63%, 94%)
CMYKcmyk(42.5%, 62.5%, 0%, 5.9%)
CIE-LABlab(50.69, 52.43, -68.81)
CIE-LCHlch(50.69, 86.51, 307.30°)
OKLaboklab(59.75% 0.0858 -0.1965)
OKLCHoklch(59.75% 0.214 293.6)
XYZxyz(29.8613, 19.0061, 84.5164)
Luminance0.1901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AF0 #C0F05A
analogous
#5A75F0 #8A5AF0 #D55AF0
triadic
#8A5AF0 #F08A5A #5AF08A
tetradic
#8A5AF0 #F05A75 #C0F05A #5AF0D5
square
#8A5AF0 #F05A75 #C0F05A #5AF0D5
split-complementary
#8A5AF0 #F0D55A #75F05A
monochromatic
#4911BE #6222EB #8A5AF0 #B292F5 #DACAFA

Accessibility & contrast

On white

4.37
#8A5AF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#8A5AF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5AF0
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AF0#FFFFFF#000000##000000
##8A5AF01.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF5
Deuteranopia (green-blind)
#0076ED
Tritanopia (blue-blind)
#6E7D9D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5af0;
/* rgb */ color: rgb(138, 90, 240);
/* oklch */ color: oklch(59.7% 0.214 293.6);
Tailwind
colors: {
  custom: {
    50: '#b38bf6',
    500: '#8a5af0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5af0;
$custom-light: #b38bf6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5af0",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 240
  },
  "hsl": {
    "h": 259.2,
    "s": 83.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59747,
    "c": 0.21439,
    "h": 293.6
  },
  "luminance": 0.19007
}

Semantic roles & 50–950 ramp

primary
#8A5AF0
secondary
#DCEDB9
accent
#E0069A
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5AF0

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

Preview Lab → · Contrast checker → · Palette generator →

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