#8E2AC7#8E2AC7

#8E2AC7 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.6% C 0.227 H 309.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8E2AC7
RGBrgb(142, 42, 199)
HSLhsl(278, 65%, 47%)
HSVhsv(278, 79%, 78%)
CMYKcmyk(28.6%, 78.9%, 0%, 22%)
CIE-LABlab(40.46, 64.97, -62.01)
CIE-LCHlch(40.46, 89.81, 316.34°)
OKLaboklab(51.62% 0.1438 -0.1761)
OKLCHoklch(51.62% 0.227 309.2)
XYZxyz(22.2900, 11.5307, 55.0732)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2AC7 #63C72A
analogous
#402AC7 #8E2AC7 #C72AB1
triadic
#8E2AC7 #C78E2A #2AC78E
tetradic
#8E2AC7 #C7402A #63C72A #2AB1C7
square
#8E2AC7 #C7402A #63C72A #2AB1C7
split-complementary
#8E2AC7 #B1C72A #2AC740
monochromatic
#461562 #6A1F94 #8E2AC7 #AA53DB #C386E5

Accessibility & contrast

On white

6.35
#8E2AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8E2AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2AC7
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2AC7#FFFFFF#000000##FFFFFF
##8E2AC71.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#0061C4
Tritanopia (blue-blind)
#855279
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8e2ac7;
/* rgb */ color: rgb(142, 42, 199);
/* oklch */ color: oklch(51.6% 0.227 309.2);
Tailwind
colors: {
  custom: {
    50: '#b570d9',
    500: '#8e2ac7',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ac7;
$custom-light: #b570d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ac7",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 199
  },
  "hsl": {
    "h": 278.217,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51619,
    "c": 0.22737,
    "h": 309.2
  },
  "luminance": 0.1153
}

Semantic roles & 50–950 ramp

primary
#8E2AC7
secondary
#9BCF7E
accent
#E8407D
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8E2AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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