#8E2AC3#8E2AC3

#8E2AC3 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.3% C 0.224 H 310.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8E2AC3
RGBrgb(142, 42, 195)
HSLhsl(279, 65%, 46%)
HSVhsv(279, 78%, 76%)
CMYKcmyk(27.2%, 78.5%, 0%, 23.5%)
CIE-LABlab(40.16, 64.14, -60.16)
CIE-LCHlch(40.16, 87.94, 316.83°)
OKLaboklab(51.31% 0.1447 -0.1707)
OKLCHoklch(51.31% 0.224 310.3)
XYZxyz(21.8317, 11.3473, 52.6594)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2AC3 #5FC32A
analogous
#422AC3 #8E2AC3 #C32AAC
triadic
#8E2AC3 #C38E2A #2AC38E
tetradic
#8E2AC3 #C3422A #5FC32A #2AACC3
square
#8E2AC3 #C3422A #5FC32A #2AACC3
split-complementary
#8E2AC3 #ACC32A #2AC342
monochromatic
#45145E #691F91 #8E2AC3 #AA51D9 #C383E4

Accessibility & contrast

On white

6.42
#8E2AC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8E2AC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2AC3
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2AC3#FFFFFF#000000##FFFFFF
##8E2AC31.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#865077
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8e2ac3;
/* rgb */ color: rgb(142, 42, 195);
/* oklch */ color: oklch(51.3% 0.224 310.3);
Tailwind
colors: {
  custom: {
    50: '#b470d6',
    500: '#8e2ac3',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ac3;
$custom-light: #b470d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ac3",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 195
  },
  "hsl": {
    "h": 279.216,
    "s": 64.557,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51314,
    "c": 0.22378,
    "h": 310.3
  },
  "luminance": 0.11347
}

Semantic roles & 50–950 ramp

primary
#8E2AC3
secondary
#98CD7B
accent
#E8407A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8E2AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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