#8A5CF0#8A5CF0

#8A5CF0 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.0% C 0.212 H 293.3°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8A5CF0
RGBrgb(138, 92, 240)
HSLhsl(259, 83%, 65%)
HSVhsv(259, 62%, 94%)
CMYKcmyk(42.5%, 61.7%, 0%, 5.9%)
CIE-LABlab(51.09, 51.37, -68.17)
CIE-LCHlch(51.09, 85.36, 307.00°)
OKLaboklab(60.04% 0.0837 -0.1946)
OKLCHoklch(60.04% 0.212 293.3)
XYZxyz(30.0323, 19.3480, 84.5734)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CF0 #C2F05C
analogous
#5C78F0 #8A5CF0 #D45CF0
triadic
#8A5CF0 #F08A5C #5CF08A
tetradic
#8A5CF0 #F05C78 #C2F05C #5CF0D4
square
#8A5CF0 #F05C78 #C2F05C #5CF0D4
split-complementary
#8A5CF0 #F0D45C #78F05C
monochromatic
#4812C0 #6224EB #8A5CF0 #B294F5 #DACCFA

Accessibility & contrast

On white

4.31
#8A5CF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8A5CF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CF0
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CF0#FFFFFF#000000##000000
##8A5CF01.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a5cf0;
/* rgb */ color: rgb(138, 92, 240);
/* oklch */ color: oklch(60.0% 0.212 293.3);
Tailwind
colors: {
  custom: {
    50: '#b38cf6',
    500: '#8a5cf0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cf0;
$custom-light: #b38cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cf0",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 240
  },
  "hsl": {
    "h": 258.649,
    "s": 83.146,
    "l": 65.098
  },
  "oklch": {
    "l": 0.60036,
    "c": 0.21181,
    "h": 293.3
  },
  "luminance": 0.19349
}

Semantic roles & 50–950 ramp

primary
#8A5CF0
secondary
#DDEDBB
accent
#E0069C
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5CF0

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

Preview Lab → · Contrast checker → · Palette generator →

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