#8D5EF5#8D5EF5

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

Color values

HEX#8D5EF5
RGBrgb(141, 94, 245)
HSLhsl(259, 88%, 66%)
HSVhsv(259, 62%, 96%)
CMYKcmyk(42.4%, 61.6%, 0%, 3.9%)
CIE-LABlab(52.13, 52.22, -69.27)
CIE-LCHlch(52.13, 86.75, 307.01°)
OKLaboklab(60.97% 0.0851 -0.1977)
OKLCHoklch(60.97% 0.215 293.3)
XYZxyz(31.4642, 20.2598, 88.6213)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EF5 #C6F55E
analogous
#5E7BF5 #8D5EF5 #D85EF5
triadic
#8D5EF5 #F58D5E #5EF58D
tetradic
#8D5EF5 #F55E7B #C6F55E #5EF5D8
square
#8D5EF5 #F55E7B #C6F55E #5EF5D8
split-complementary
#8D5EF5 #F5D85E #7BF55E
monochromatic
#480DCC #6424F1 #8D5EF5 #B698F9 #DFD1FC

Accessibility & contrast

On white

4.16
#8D5EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8D5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D5EF5
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EF5#FFFFFF#000000##000000
##8D5EF51.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d5ef5;
/* rgb */ color: rgb(141, 94, 245);
/* oklch */ color: oklch(61.0% 0.215 293.3);
Tailwind
colors: {
  custom: {
    50: '#b58ef9',
    500: '#8d5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ef5;
$custom-light: #b58ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ef5",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 258.675,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60967,
    "c": 0.21525,
    "h": 293.3
  },
  "luminance": 0.20261
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8D5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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