#8D51E4#8D51E4

#8D51E4 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.9% C 0.212 H 298.2°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8D51E4
RGBrgb(141, 81, 228)
HSLhsl(264, 73%, 61%)
HSVhsv(264, 64%, 89%)
CMYKcmyk(38.2%, 64.5%, 0%, 10.6%)
CIE-LABlab(48.45, 54.62, -65.69)
CIE-LCHlch(48.45, 85.43, 309.74°)
OKLaboklab(57.93% 0.1005 -0.1872)
OKLCHoklch(57.93% 0.212 298.2)
XYZxyz(27.9270, 17.1486, 75.2224)
Luminance0.1715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51E4 #A8E451
analogous
#515EE4 #8D51E4 #D651E4
triadic
#8D51E4 #E48D51 #51E48D
tetradic
#8D51E4 #E4515E #A8E451 #51E4D6
square
#8D51E4 #E4515E #A8E451 #51E4D6
split-complementary
#8D51E4 #E4D651 #5EE451
monochromatic
#5119A2 #6B21D7 #8D51E4 #B086EC #D2BBF4

Accessibility & contrast

On white

4.74
#8D51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#8D51E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51E4
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51E4#FFFFFF#000000##FFFFFF
##8D51E41.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#0072E1
Tritanopia (blue-blind)
#787393
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8d51e4;
/* rgb */ color: rgb(141, 81, 228);
/* oklch */ color: oklch(57.9% 0.212 298.2);
Tailwind
colors: {
  custom: {
    50: '#b485ed',
    500: '#8d51e4',
    950: '#000000',
  },
}
SCSS
$custom: #8d51e4;
$custom-light: #b485ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51e4",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 264.49,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.57931,
    "c": 0.21242,
    "h": 298.2
  },
  "luminance": 0.17149
}

Semantic roles & 50–950 ramp

primary
#8D51E4
secondary
#CEE4AC
accent
#D51085
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8D51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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