#8E4FD5#8E4FD5

#8E4FD5 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.7% C 0.198 H 302.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8E4FD5
RGBrgb(142, 79, 213)
HSLhsl(268, 61%, 57%)
HSVhsv(268, 63%, 84%)
CMYKcmyk(33.3%, 62.9%, 0%, 16.5%)
CIE-LABlab(47.17, 52.13, -59.22)
CIE-LCHlch(47.17, 78.90, 311.36°)
OKLaboklab(56.71% 0.1053 -0.1681)
OKLCHoklch(56.71% 0.198 302.1)
XYZxyz(25.9587, 16.1468, 64.6869)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4FD5 #96D54F
analogous
#4F53D5 #8E4FD5 #D14FD5
triadic
#8E4FD5 #D58E4F #4FD58E
tetradic
#8E4FD5 #D54F53 #96D54F #4FD5D1
square
#8E4FD5 #D54F53 #96D54F #4FD5D1
split-complementary
#8E4FD5 #D5D14F #53D54F
monochromatic
#522189 #6F2CBA #8E4FD5 #AE80E1 #CDB2ED

Accessibility & contrast

On white

4.97
#8E4FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8E4FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4FD5
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4FD5#FFFFFF#000000##FFFFFF
##8E4FD51.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD9
Deuteranopia (green-blind)
#216FD2
Tritanopia (blue-blind)
#806C8B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8e4fd5;
/* rgb */ color: rgb(142, 79, 213);
/* oklch */ color: oklch(56.7% 0.198 302.1);
Tailwind
colors: {
  custom: {
    50: '#b484e3',
    500: '#8e4fd5',
    950: '#000000',
  },
}
SCSS
$custom: #8e4fd5;
$custom-light: #b484e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4fd5",
  "rgb": {
    "r": 142,
    "g": 79,
    "b": 213
  },
  "hsl": {
    "h": 268.209,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56709,
    "c": 0.19836,
    "h": 302.1
  },
  "luminance": 0.16147
}

Semantic roles & 50–950 ramp

primary
#8E4FD5
secondary
#C2DBA5
accent
#E54399
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B15
muted
#817C84

Preview Lab

Preview with #8E4FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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