#8A5CF9#8A5CF9

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

Color values

HEX#8A5CF9
RGBrgb(138, 92, 249)
HSLhsl(258, 93%, 67%)
HSVhsv(258, 63%, 98%)
CMYKcmyk(44.6%, 63.1%, 0%, 2.4%)
CIE-LABlab(51.72, 53.76, -72.18)
CIE-LCHlch(51.72, 90.00, 306.68°)
OKLaboklab(60.69% 0.083 -0.2063)
OKLCHoklch(60.69% 0.222 291.9)
XYZxyz(31.4025, 19.8961, 91.7899)
Luminance0.1990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CF9 #CBF95C
analogous
#5C7DF9 #8A5CF9 #D95CF9
triadic
#8A5CF9 #F98A5C #5CF98A
tetradic
#8A5CF9 #F95C7D #CBF95C #5CF9D9
square
#8A5CF9 #F95C7D #CBF95C #5CF9D9
split-complementary
#8A5CF9 #F9D95C #7DF95C
monochromatic
#4308D3 #6021F7 #8A5CF9 #B497FB #DFD2FD

Accessibility & contrast

On white

4.22
#8A5CF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8A5CF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CF9
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CF9#FFFFFF#000000##000000
##8A5CF91.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFE
Deuteranopia (green-blind)
#0078F6
Tritanopia (blue-blind)
#6981A2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5cf9;
/* rgb */ color: rgb(138, 92, 249);
/* oklch */ color: oklch(60.7% 0.222 291.9);
Tailwind
colors: {
  custom: {
    50: '#b48cfc',
    500: '#8a5cf9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cf9;
$custom-light: #b48cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cf9",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 249
  },
  "hsl": {
    "h": 257.58,
    "s": 92.899,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60689,
    "c": 0.22241,
    "h": 291.9
  },
  "luminance": 0.19897
}

Semantic roles & 50–950 ramp

primary
#8A5CF9
secondary
#E3F2BF
accent
#E600A2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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