#8A5EF6#8A5EF6

#8A5EF6 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.8% C 0.216 H 292.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A5EF6
RGBrgb(138, 94, 246)
HSLhsl(257, 89%, 67%)
HSVhsv(257, 62%, 96%)
CMYKcmyk(43.9%, 61.8%, 0%, 3.5%)
CIE-LABlab(51.91, 51.89, -70.20)
CIE-LCHlch(51.91, 87.30, 306.47°)
OKLaboklab(60.76% 0.0812 -0.2005)
OKLCHoklch(60.76% 0.216 292)
XYZxyz(31.1139, 20.0615, 89.4038)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EF6 #CAF65E
analogous
#5E7EF6 #8A5EF6 #D65EF6
triadic
#8A5EF6 #F68A5E #5EF68A
tetradic
#8A5EF6 #F65E7E #CAF65E #5EF6D6
square
#8A5EF6 #F65E7E #CAF65E #5EF6D6
split-complementary
#8A5EF6 #F6D65E #7EF65E
monochromatic
#440CCE #6024F3 #8A5EF6 #B498F9 #DED2FC

Accessibility & contrast

On white

4.19
#8A5EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#8A5EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EF6
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EF6#FFFFFF#000000##000000
##8A5EF61.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFB
Deuteranopia (green-blind)
#0079F3
Tritanopia (blue-blind)
#6B81A1
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a5ef6;
/* rgb */ color: rgb(138, 94, 246);
/* oklch */ color: oklch(60.8% 0.216 292.0);
Tailwind
colors: {
  custom: {
    50: '#b38efa',
    500: '#8a5ef6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ef6;
$custom-light: #b38efa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ef6",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 246
  },
  "hsl": {
    "h": 257.368,
    "s": 89.412,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60759,
    "c": 0.21634,
    "h": 292
  },
  "luminance": 0.20063
}

Semantic roles & 50–950 ramp

primary
#8A5EF6
secondary
#E2F0BF
accent
#E600A3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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