#8A5DF2#8A5DF2

#8A5DF2 is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.3% C 0.213 H 292.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A5DF2
RGBrgb(138, 93, 242)
HSLhsl(258, 85%, 66%)
HSVhsv(258, 62%, 95%)
CMYKcmyk(43%, 61.6%, 0%, 5.1%)
CIE-LABlab(51.43, 51.36, -68.74)
CIE-LCHlch(51.43, 85.81, 306.77°)
OKLaboklab(60.33% 0.0825 -0.1962)
OKLCHoklch(60.33% 0.213 292.8)
XYZxyz(30.4182, 19.6419, 86.1758)
Luminance0.1964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DF2 #C5F25D
analogous
#5D7AF2 #8A5DF2 #D55DF2
triadic
#8A5DF2 #F28A5D #5DF28A
tetradic
#8A5DF2 #F25D7A #C5F25D #5DF2D5
square
#8A5DF2 #F25D7A #C5F25D #5DF2D5
split-complementary
#8A5DF2 #F2D55D #7AF25D
monochromatic
#4610C5 #6124ED #8A5DF2 #B396F7 #DCCEFB

Accessibility & contrast

On white

4.26
#8A5DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#8A5DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DF2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DF2#FFFFFF#000000##000000
##8A5DF21.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#0078EF
Tritanopia (blue-blind)
#6D7F9F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5df2;
/* rgb */ color: rgb(138, 93, 242);
/* oklch */ color: oklch(60.3% 0.213 292.8);
Tailwind
colors: {
  custom: {
    50: '#b38df7',
    500: '#8a5df2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5df2;
$custom-light: #b38df7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5df2",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 258.121,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.60325,
    "c": 0.21289,
    "h": 292.8
  },
  "luminance": 0.19643
}

Semantic roles & 50–950 ramp

primary
#8A5DF2
secondary
#DFEEBD
accent
#E2049F
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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