#8E4DB2#8E4DB2

#8E4DB2 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.162 H 311.9°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8E4DB2
RGBrgb(142, 77, 178)
HSLhsl(279, 40%, 50%)
HSVhsv(279, 57%, 70%)
CMYKcmyk(20.2%, 56.7%, 0%, 30.2%)
CIE-LABlab(44.62, 44.96, -43.02)
CIE-LCHlch(44.62, 62.23, 316.26°)
OKLaboklab(54.16% 0.1082 -0.1206)
OKLCHoklch(54.16% 0.162 311.9)
XYZxyz(21.8437, 14.2734, 43.7152)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4DB2 #71B24D
analogous
#5C4DB2 #8E4DB2 #B24DA3
triadic
#8E4DB2 #B28E4D #4DB28E
tetradic
#8E4DB2 #B25C4D #71B24D #4DA3B2
square
#8E4DB2 #B25C4D #71B24D #4DA3B2
split-complementary
#8E4DB2 #A3B24D #4DB25C
monochromatic
#4A285D #6C3B87 #8E4DB2 #A978C4 #C4A2D7

Accessibility & contrast

On white

5.45
#8E4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8E4DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4DB2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4DB2#FFFFFF#000000##FFFFFF
##8E4DB21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#466BAF
Tritanopia (blue-blind)
#8A5F78
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e4db2;
/* rgb */ color: rgb(142, 77, 178);
/* oklch */ color: oklch(54.2% 0.162 311.9);
Tailwind
colors: {
  custom: {
    50: '#b282c9',
    500: '#8e4db2',
    950: '#000000',
  },
}
SCSS
$custom: #8e4db2;
$custom-light: #b282c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4db2",
  "rgb": {
    "r": 142,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 278.614,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.54164,
    "c": 0.16204,
    "h": 311.9
  },
  "luminance": 0.14273
}

Semantic roles & 50–950 ramp

primary
#8E4DB2
secondary
#A7C497
accent
#CF5883
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8E4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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