#8D5EF2#8D5EF2

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

Color values

HEX#8D5EF2
RGBrgb(141, 94, 242)
HSLhsl(259, 85%, 66%)
HSVhsv(259, 61%, 95%)
CMYKcmyk(41.7%, 61.2%, 0%, 5.1%)
CIE-LABlab(51.93, 51.43, -67.93)
CIE-LCHlch(51.93, 85.20, 307.13°)
OKLaboklab(60.75% 0.0853 -0.1938)
OKLCHoklch(60.75% 0.212 293.8)
XYZxyz(31.0099, 20.0781, 86.2288)
Luminance0.2008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EF2 #C3F25E
analogous
#5E79F2 #8D5EF2 #D75EF2
triadic
#8D5EF2 #F28D5E #5EF28D
tetradic
#8D5EF2 #F25E79 #C3F25E #5EF2D7
square
#8D5EF2 #F25E79 #C3F25E #5EF2D7
split-complementary
#8D5EF2 #F2D75E #79F25E
monochromatic
#4A10C6 #6525ED #8D5EF2 #B597F7 #DDCFFB

Accessibility & contrast

On white

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

On black

5.02
#8D5EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D5EF2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EF2#FFFFFF#000000##000000
##8D5EF21.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF7
Deuteranopia (green-blind)
#0079EF
Tritanopia (blue-blind)
#72809F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8d5ef2;
/* rgb */ color: rgb(141, 94, 242);
/* oklch */ color: oklch(60.8% 0.212 293.8);
Tailwind
colors: {
  custom: {
    50: '#b58ef7',
    500: '#8d5ef2',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ef2;
$custom-light: #b58ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ef2",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 259.054,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60754,
    "c": 0.21172,
    "h": 293.8
  },
  "luminance": 0.20079
}

Semantic roles & 50–950 ramp

primary
#8D5EF2
secondary
#DFEEBD
accent
#E2049B
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8D5EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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