#8A5EF1#8A5EF1

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

Color values

HEX#8A5EF1
RGBrgb(138, 94, 241)
HSLhsl(258, 84%, 66%)
HSVhsv(258, 61%, 95%)
CMYKcmyk(42.7%, 61%, 0%, 5.5%)
CIE-LABlab(51.56, 50.56, -67.97)
CIE-LCHlch(51.56, 84.71, 306.64°)
OKLaboklab(60.4% 0.0815 -0.194)
OKLCHoklch(60.4% 0.21 292.8)
XYZxyz(30.3568, 19.7587, 85.4164)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EF1 #C5F15E
analogous
#5E7BF1 #8A5EF1 #D35EF1
triadic
#8A5EF1 #F18A5E #5EF18A
tetradic
#8A5EF1 #F15E7B #C5F15E #5EF1D3
square
#8A5EF1 #F15E7B #C5F15E #5EF1D3
split-complementary
#8A5EF1 #F1D35E #7BF15E
monochromatic
#4611C4 #6126EC #8A5EF1 #B396F6 #DCCFFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5EF1#FFFFFF#000000##000000
##8A5EF11.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)
#007DF6
Deuteranopia (green-blind)
#0078EE
Tritanopia (blue-blind)
#6D809F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5ef1;
/* rgb */ color: rgb(138, 94, 241);
/* oklch */ color: oklch(60.4% 0.210 292.8);
Tailwind
colors: {
  custom: {
    50: '#b38ef7',
    500: '#8a5ef1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ef1;
$custom-light: #b38ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ef1",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 241
  },
  "hsl": {
    "h": 257.959,
    "s": 84,
    "l": 65.686
  },
  "oklch": {
    "l": 0.604,
    "c": 0.2104,
    "h": 292.8
  },
  "luminance": 0.1976
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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