#8D5EF8#8D5EF8

#8D5EF8 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.2% C 0.219 H 292.8°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8D5EF8
RGBrgb(141, 94, 248)
HSLhsl(258, 92%, 67%)
HSVhsv(258, 62%, 97%)
CMYKcmyk(43.1%, 62.1%, 0%, 2.7%)
CIE-LABlab(52.34, 53.01, -70.61)
CIE-LCHlch(52.34, 88.29, 306.90°)
OKLaboklab(61.18% 0.0849 -0.2016)
OKLCHoklch(61.18% 0.219 292.8)
XYZxyz(31.9259, 20.4445, 91.0528)
Luminance0.2044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EF8 #C9F85E
analogous
#5E7CF8 #8D5EF8 #DA5EF8
triadic
#8D5EF8 #F88D5E #5EF88D
tetradic
#8D5EF8 #F85E7C #C9F85E #5EF8DA
square
#8D5EF8 #F85E7C #C9F85E #5EF8DA
split-complementary
#8D5EF8 #F8DA5E #7CF85E
monochromatic
#4709D2 #6323F5 #8D5EF8 #B799FB #E0D3FD

Accessibility & contrast

On white

4.13
#8D5EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8D5EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D5EF8
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EF8#FFFFFF#000000##000000
##8D5EF81.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFD
Deuteranopia (green-blind)
#007AF5
Tritanopia (blue-blind)
#6F82A3
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8d5ef8;
/* rgb */ color: rgb(141, 94, 248);
/* oklch */ color: oklch(61.2% 0.219 292.8);
Tailwind
colors: {
  custom: {
    50: '#b58efb',
    500: '#8d5ef8',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ef8;
$custom-light: #b58efb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ef8",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 248
  },
  "hsl": {
    "h": 258.312,
    "s": 91.667,
    "l": 67.059
  },
  "oklch": {
    "l": 0.61182,
    "c": 0.21878,
    "h": 292.8
  },
  "luminance": 0.20445
}

Semantic roles & 50–950 ramp

primary
#8D5EF8
secondary
#E2F1C0
accent
#E6009F
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8D5EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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