#8E4AC2#8E4AC2

#8E4AC2 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.7% C 0.184 H 307.5°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8E4AC2
RGBrgb(142, 74, 194)
HSLhsl(274, 50%, 53%)
HSVhsv(274, 62%, 76%)
CMYKcmyk(26.8%, 61.9%, 0%, 23.9%)
CIE-LABlab(45.00, 50.16, -51.76)
CIE-LCHlch(45.00, 72.08, 314.10°)
OKLaboklab(54.75% 0.1121 -0.1462)
OKLCHoklch(54.75% 0.184 307.5)
XYZxyz(23.3397, 14.5437, 52.6061)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4AC2 #7EC24A
analogous
#524AC2 #8E4AC2 #C24ABA
triadic
#8E4AC2 #C28E4A #4AC28E
tetradic
#8E4AC2 #C2524A #7EC24A #4ABAC2
square
#8E4AC2 #C2524A #7EC24A #4ABAC2
split-complementary
#8E4AC2 #BAC24A #4AC252
monochromatic
#4E256D #6E349B #8E4AC2 #AB78D1 #C7A6E1

Accessibility & contrast

On white

5.37
#8E4AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8E4AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4AC2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4AC2#FFFFFF#000000##FFFFFF
##8E4AC21.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0968C6
Deuteranopia (green-blind)
#356BBF
Tritanopia (blue-blind)
#86627F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e4ac2;
/* rgb */ color: rgb(142, 74, 194);
/* oklch */ color: oklch(54.7% 0.184 307.5);
Tailwind
colors: {
  custom: {
    50: '#b380d5',
    500: '#8e4ac2',
    950: '#000000',
  },
}
SCSS
$custom: #8e4ac2;
$custom-light: #b380d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4ac2",
  "rgb": {
    "r": 142,
    "g": 74,
    "b": 194
  },
  "hsl": {
    "h": 274,
    "s": 49.587,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54749,
    "c": 0.18422,
    "h": 307.5
  },
  "luminance": 0.14543
}

Semantic roles & 50–950 ramp

primary
#8E4AC2
secondary
#B0CE9A
accent
#D94F8B
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8E4AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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