#8A5CF6#8A5CF6

#8A5CF6 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.5% C 0.219 H 292.4°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A5CF6
RGBrgb(138, 92, 246)
HSLhsl(258, 90%, 66%)
HSVhsv(258, 63%, 96%)
CMYKcmyk(43.9%, 62.6%, 0%, 3.5%)
CIE-LABlab(51.51, 52.96, -70.85)
CIE-LCHlch(51.51, 88.45, 306.78°)
OKLaboklab(60.47% 0.0832 -0.2024)
OKLCHoklch(60.47% 0.219 292.4)
XYZxyz(30.9383, 19.7104, 89.3453)
Luminance0.1971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CF6 #C8F65C
analogous
#5C7BF6 #8A5CF6 #D75CF6
triadic
#8A5CF6 #F68A5C #5CF68A
tetradic
#8A5CF6 #F65C7B #C8F65C #5CF6D7
square
#8A5CF6 #F65C7B #C8F65C #5CF6D7
split-complementary
#8A5CF6 #F6D75C #7BF65C
monochromatic
#450BCC #6022F3 #8A5CF6 #B496F9 #DDD0FC

Accessibility & contrast

On white

4.25
#8A5CF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#8A5CF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CF6
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CF6#FFFFFF#000000##000000
##8A5CF61.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFB
Deuteranopia (green-blind)
#0078F3
Tritanopia (blue-blind)
#6B80A1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5cf6;
/* rgb */ color: rgb(138, 92, 246);
/* oklch */ color: oklch(60.5% 0.219 292.4);
Tailwind
colors: {
  custom: {
    50: '#b38cfa',
    500: '#8a5cf6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cf6;
$custom-light: #b38cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cf6",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 246
  },
  "hsl": {
    "h": 257.922,
    "s": 89.535,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60469,
    "c": 0.21889,
    "h": 292.4
  },
  "luminance": 0.19711
}

Semantic roles & 50–950 ramp

primary
#8A5CF6
secondary
#E1F0BE
accent
#E600A1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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