#8E2FAA#8E2FAA

#8E2FAA is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.196 H 317.4°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8E2FAA
RGBrgb(142, 47, 170)
HSLhsl(286, 57%, 43%)
HSVhsv(286, 72%, 67%)
CMYKcmyk(16.5%, 72.4%, 0%, 33.3%)
CIE-LABlab(39.05, 57.25, -47.20)
CIE-LCHlch(39.05, 74.20, 320.50°)
OKLaboklab(49.98% 0.1442 -0.1326)
OKLCHoklch(49.98% 0.196 317.4)
XYZxyz(19.4265, 10.6869, 39.0619)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2FAA #4BAA2F
analogous
#502FAA #8E2FAA #AA2F89
triadic
#8E2FAA #AA8E2F #2FAA8E
tetradic
#8E2FAA #AA502F #4BAA2F #2F89AA
square
#8E2FAA #AA502F #4BAA2F #2F89AA
split-complementary
#8E2FAA #89AA2F #2FAA50
monochromatic
#3E144A #66227A #8E2FAA #AF49CD #C479DA

Accessibility & contrast

On white

6.69
#8E2FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8E2FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2FAA
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2FAA#FFFFFF#000000##FFFFFF
##8E2FAA1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#325FA7
Tritanopia (blue-blind)
#8D486A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e2faa;
/* rgb */ color: rgb(142, 47, 170);
/* oklch */ color: oklch(50.0% 0.196 317.4);
Tailwind
colors: {
  custom: {
    50: '#b371c4',
    500: '#8e2faa',
    950: '#000000',
  },
}
SCSS
$custom: #8e2faa;
$custom-light: #b371c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2faa",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 286.341,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49977,
    "c": 0.1959,
    "h": 317.4
  },
  "luminance": 0.10686
}

Semantic roles & 50–950 ramp

primary
#8E2FAA
secondary
#85C272
accent
#E0486A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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