#8D5EF4#8D5EF4

#8D5EF4 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 60.9% C 0.214 H 293.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8D5EF4
RGBrgb(141, 94, 244)
HSLhsl(259, 87%, 66%)
HSVhsv(259, 61%, 96%)
CMYKcmyk(42.2%, 61.5%, 0%, 4.3%)
CIE-LABlab(52.06, 51.96, -68.82)
CIE-LCHlch(52.06, 86.23, 307.05°)
OKLaboklab(60.9% 0.0852 -0.1964)
OKLCHoklch(60.9% 0.214 293.5)
XYZxyz(31.3119, 20.1989, 87.8194)
Luminance0.2020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EF4 #C5F45E
analogous
#5E7AF4 #8D5EF4 #D85EF4
triadic
#8D5EF4 #F48D5E #5EF48D
tetradic
#8D5EF4 #F45E7A #C5F45E #5EF4D8
square
#8D5EF4 #F45E7A #C5F45E #5EF4D8
split-complementary
#8D5EF4 #F4D85E #7AF45E
monochromatic
#490ECA #6425F0 #8D5EF4 #B697F8 #DED1FC

Accessibility & contrast

On white

4.17
#8D5EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8D5EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D5EF4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EF4#FFFFFF#000000##000000
##8D5EF41.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF9
Deuteranopia (green-blind)
#0079F1
Tritanopia (blue-blind)
#7180A0
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8d5ef4;
/* rgb */ color: rgb(141, 94, 244);
/* oklch */ color: oklch(60.9% 0.214 293.5);
Tailwind
colors: {
  custom: {
    50: '#b58ef9',
    500: '#8d5ef4',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ef4;
$custom-light: #b58ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ef4",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 244
  },
  "hsl": {
    "h": 258.8,
    "s": 87.209,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60896,
    "c": 0.21407,
    "h": 293.5
  },
  "luminance": 0.202
}

Semantic roles & 50–950 ramp

primary
#8D5EF4
secondary
#E0EFBE
accent
#E4029D
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8D5EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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