#8E2FA5#8E2FA5

#8E2FA5 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.6% C 0.191 H 319.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#8E2FA5
RGBrgb(142, 47, 165)
HSLhsl(288, 56%, 42%)
HSVhsv(288, 72%, 65%)
CMYKcmyk(13.9%, 71.5%, 0%, 35.3%)
CIE-LABlab(38.73, 56.27, -44.73)
CIE-LCHlch(38.73, 71.88, 321.52°)
OKLaboklab(49.65% 0.1446 -0.1254)
OKLCHoklch(49.65% 0.191 319.1)
XYZxyz(18.9625, 10.5013, 36.6181)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2FA5 #46A52F
analogous
#532FA5 #8E2FA5 #A52F81
triadic
#8E2FA5 #A58E2F #2FA58E
tetradic
#8E2FA5 #A5532F #46A52F #2F81A5
square
#8E2FA5 #A5532F #46A52F #2F81A5
split-complementary
#8E2FA5 #81A52F #2FA553
monochromatic
#3C1446 #652175 #8E2FA5 #B147CB #C576D8

Accessibility & contrast

On white

6.77
#8E2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8E2FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2FA5
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2FA5#FFFFFF#000000##FFFFFF
##8E2FA51.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#375EA2
Tritanopia (blue-blind)
#8E4667
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2fa5;
/* rgb */ color: rgb(142, 47, 165);
/* oklch */ color: oklch(49.6% 0.191 319.1);
Tailwind
colors: {
  custom: {
    50: '#b370c0',
    500: '#8e2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8e2fa5;
$custom-light: #b370c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2fa5",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 288.305,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49646,
    "c": 0.19137,
    "h": 319.1
  },
  "luminance": 0.105
}

Semantic roles & 50–950 ramp

primary
#8E2FA5
secondary
#7FC070
accent
#DF4966
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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