#8A5DF4#8A5DF4

#8A5DF4 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.5% C 0.215 H 292.5°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A5DF4
RGBrgb(138, 93, 244)
HSLhsl(258, 87%, 66%)
HSVhsv(258, 62%, 96%)
CMYKcmyk(43.4%, 61.9%, 0%, 4.3%)
CIE-LABlab(51.57, 51.89, -69.64)
CIE-LCHlch(51.57, 86.84, 306.69°)
OKLaboklab(60.47% 0.0824 -0.1989)
OKLCHoklch(60.47% 0.215 292.5)
XYZxyz(30.7202, 19.7627, 87.7664)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DF4 #C7F45D
analogous
#5D7BF4 #8A5DF4 #D55DF4
triadic
#8A5DF4 #F48A5D #5DF48A
tetradic
#8A5DF4 #F45D7B #C7F45D #5DF4D5
square
#8A5DF4 #F45D7B #C7F45D #5DF4D5
split-complementary
#8A5DF4 #F4D55D #7BF45D
monochromatic
#450EC9 #6124F0 #8A5DF4 #B396F8 #DDD0FC

Accessibility & contrast

On white

4.24
#8A5DF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#8A5DF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DF4
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DF4#FFFFFF#000000##000000
##8A5DF41.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a5df4;
/* rgb */ color: rgb(138, 93, 244);
/* oklch */ color: oklch(60.5% 0.215 292.5);
Tailwind
colors: {
  custom: {
    50: '#b38df9',
    500: '#8a5df4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5df4;
$custom-light: #b38df9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5df4",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 244
  },
  "hsl": {
    "h": 257.881,
    "s": 87.283,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60469,
    "c": 0.21526,
    "h": 292.5
  },
  "luminance": 0.19764
}

Semantic roles & 50–950 ramp

primary
#8A5DF4
secondary
#E0EFBE
accent
#E402A0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5DF4

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

Preview Lab → · Contrast checker → · Palette generator →

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