#8E2FA9#8E2FA9

#8E2FA9 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.9% C 0.195 H 317.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#8E2FA9
RGBrgb(142, 47, 169)
HSLhsl(287, 56%, 42%)
HSVhsv(287, 72%, 66%)
CMYKcmyk(16%, 72.2%, 0%, 33.7%)
CIE-LABlab(38.98, 57.05, -46.71)
CIE-LCHlch(38.98, 73.73, 320.69°)
OKLaboklab(49.91% 0.1443 -0.1312)
OKLCHoklch(49.91% 0.195 317.7)
XYZxyz(19.3323, 10.6492, 38.5656)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2FA9 #4AA92F
analogous
#512FA9 #8E2FA9 #A92F87
triadic
#8E2FA9 #A98E2F #2FA98E
tetradic
#8E2FA9 #A9512F #4AA92F #2F87A9
square
#8E2FA9 #A9512F #4AA92F #2F87A9
split-complementary
#8E2FA9 #87A92F #2FA951
monochromatic
#3E1449 #662279 #8E2FA9 #AF49CC #C479DA

Accessibility & contrast

On white

6.71
#8E2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8E2FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2FA9
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2FA9#FFFFFF#000000##FFFFFF
##8E2FA91.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AC
Deuteranopia (green-blind)
#335FA6
Tritanopia (blue-blind)
#8D4769
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e2fa9;
/* rgb */ color: rgb(142, 47, 169);
/* oklch */ color: oklch(49.9% 0.195 317.7);
Tailwind
colors: {
  custom: {
    50: '#b371c3',
    500: '#8e2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #8e2fa9;
$custom-light: #b371c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2fa9",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 286.721,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4991,
    "c": 0.195,
    "h": 317.7
  },
  "luminance": 0.10648
}

Semantic roles & 50–950 ramp

primary
#8E2FA9
secondary
#84C272
accent
#E0486A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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