#8A5DF3#8A5DF3

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

Color values

HEX#8A5DF3
RGBrgb(138, 93, 243)
HSLhsl(258, 86%, 66%)
HSVhsv(258, 62%, 95%)
CMYKcmyk(43.2%, 61.7%, 0%, 4.7%)
CIE-LABlab(51.50, 51.63, -69.19)
CIE-LCHlch(51.50, 86.33, 306.73°)
OKLaboklab(60.4% 0.0824 -0.1976)
OKLCHoklch(60.4% 0.214 292.6)
XYZxyz(30.5688, 19.7021, 86.9689)
Luminance0.1970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DF3 #C6F35D
analogous
#5D7BF3 #8A5DF3 #D55DF3
triadic
#8A5DF3 #F38A5D #5DF38A
tetradic
#8A5DF3 #F35D7B #C6F35D #5DF3D5
square
#8A5DF3 #F35D7B #C6F35D #5DF3D5
split-complementary
#8A5DF3 #F3D55D #7BF35D
monochromatic
#460FC7 #6124EF #8A5DF3 #B396F7 #DCCFFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5DF3#FFFFFF#000000##000000
##8A5DF31.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)
#007DF8
Deuteranopia (green-blind)
#0078F0
Tritanopia (blue-blind)
#6C80A0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5df3;
/* rgb */ color: rgb(138, 93, 243);
/* oklch */ color: oklch(60.4% 0.214 292.6);
Tailwind
colors: {
  custom: {
    50: '#b38df8',
    500: '#8a5df3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5df3;
$custom-light: #b38df8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5df3",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 243
  },
  "hsl": {
    "h": 258,
    "s": 86.207,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60397,
    "c": 0.21408,
    "h": 292.6
  },
  "luminance": 0.19703
}

Semantic roles & 50–950 ramp

primary
#8A5DF3
secondary
#E0EFBD
accent
#E303A0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5DF3

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

Preview Lab → · Contrast checker → · Palette generator →

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