#8D5EF6#8D5EF6

#8D5EF6 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.0% C 0.216 H 293.1°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8D5EF6
RGBrgb(141, 94, 246)
HSLhsl(259, 89%, 67%)
HSVhsv(259, 62%, 96%)
CMYKcmyk(42.7%, 61.8%, 0%, 3.5%)
CIE-LABlab(52.20, 52.48, -69.71)
CIE-LCHlch(52.20, 87.26, 306.97°)
OKLaboklab(61.04% 0.0851 -0.199)
OKLCHoklch(61.04% 0.216 293.1)
XYZxyz(31.6172, 20.3211, 89.4274)
Luminance0.2032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EF6 #C7F65E
analogous
#5E7BF6 #8D5EF6 #D95EF6
triadic
#8D5EF6 #F68D5E #5EF68D
tetradic
#8D5EF6 #F65E7B #C7F65E #5EF6D9
square
#8D5EF6 #F65E7B #C7F65E #5EF6D9
split-complementary
#8D5EF6 #F6D95E #7BF65E
monochromatic
#480CCE #6424F3 #8D5EF6 #B698F9 #DFD2FC

Accessibility & contrast

On white

4.15
#8D5EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#8D5EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D5EF6
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EF6#FFFFFF#000000##000000
##8D5EF61.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFB
Deuteranopia (green-blind)
#007AF3
Tritanopia (blue-blind)
#7081A1
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8d5ef6;
/* rgb */ color: rgb(141, 94, 246);
/* oklch */ color: oklch(61.0% 0.216 293.1);
Tailwind
colors: {
  custom: {
    50: '#b58efa',
    500: '#8d5ef6',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ef6;
$custom-light: #b58efa;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ef6",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 246
  },
  "hsl": {
    "h": 258.553,
    "s": 89.412,
    "l": 66.667
  },
  "oklch": {
    "l": 0.61039,
    "c": 0.21643,
    "h": 293.1
  },
  "luminance": 0.20322
}

Semantic roles & 50–950 ramp

primary
#8D5EF6
secondary
#E1F0BF
accent
#E6009F
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8D5EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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