#8A5EF4#8A5EF4

#8A5EF4 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.6% C 0.214 H 292.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A5EF4
RGBrgb(138, 94, 244)
HSLhsl(258, 87%, 66%)
HSVhsv(258, 61%, 96%)
CMYKcmyk(43.4%, 61.5%, 0%, 4.3%)
CIE-LABlab(51.77, 51.36, -69.31)
CIE-LCHlch(51.77, 86.26, 306.54°)
OKLaboklab(60.61% 0.0813 -0.1979)
OKLCHoklch(60.61% 0.214 292.3)
XYZxyz(30.8086, 19.9394, 87.7958)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EF4 #C8F45E
analogous
#5E7DF4 #8A5EF4 #D55EF4
triadic
#8A5EF4 #F48A5E #5EF48A
tetradic
#8A5EF4 #F45E7D #C8F45E #5EF4D5
square
#8A5EF4 #F45E7D #C8F45E #5EF4D5
split-complementary
#8A5EF4 #F4D55E #7DF45E
monochromatic
#450ECA #6025F0 #8A5EF4 #B497F8 #DDD1FC

Accessibility & contrast

On white

4.21
#8A5EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#8A5EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EF4
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EF4#FFFFFF#000000##000000
##8A5EF41.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF9
Deuteranopia (green-blind)
#0078F1
Tritanopia (blue-blind)
#6C81A0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5ef4;
/* rgb */ color: rgb(138, 94, 244);
/* oklch */ color: oklch(60.6% 0.214 292.3);
Tailwind
colors: {
  custom: {
    50: '#b38ef9',
    500: '#8a5ef4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ef4;
$custom-light: #b38ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ef4",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 244
  },
  "hsl": {
    "h": 257.6,
    "s": 87.209,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60615,
    "c": 0.21397,
    "h": 292.3
  },
  "luminance": 0.1994
}

Semantic roles & 50–950 ramp

primary
#8A5EF4
secondary
#E1EFBE
accent
#E402A1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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