#8E2FA2#8E2FA2

#8E2FA2 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.189 H 320.1°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#8E2FA2
RGBrgb(142, 47, 162)
HSLhsl(290, 55%, 41%)
HSVhsv(290, 71%, 64%)
CMYKcmyk(12.3%, 71%, 0%, 36.5%)
CIE-LABlab(38.54, 55.68, -43.23)
CIE-LCHlch(38.54, 70.49, 322.18°)
OKLaboklab(49.45% 0.1448 -0.121)
OKLCHoklch(49.45% 0.189 320.1)
XYZxyz(18.6926, 10.3934, 35.1969)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2FA2 #43A22F
analogous
#542FA2 #8E2FA2 #A22F7C
triadic
#8E2FA2 #A28E2F #2FA28E
tetradic
#8E2FA2 #A2542F #43A22F #2F7CA2
square
#8E2FA2 #A2542F #43A22F #2F7CA2
split-complementary
#8E2FA2 #7CA22F #2FA254
monochromatic
#3B1343 #642173 #8E2FA2 #B245C9 #C675D7

Accessibility & contrast

On white

6.82
#8E2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8E2FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2FA2
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2FA2#FFFFFF#000000##FFFFFF
##8E2FA21.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#395E9F
Tritanopia (blue-blind)
#8F4465
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2fa2;
/* rgb */ color: rgb(142, 47, 162);
/* oklch */ color: oklch(49.5% 0.189 320.1);
Tailwind
colors: {
  custom: {
    50: '#b370be',
    500: '#8e2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #8e2fa2;
$custom-light: #b370be;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2fa2",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 289.565,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49451,
    "c": 0.18868,
    "h": 320.1
  },
  "luminance": 0.10392
}

Semantic roles & 50–950 ramp

primary
#8E2FA2
secondary
#7CBF6E
accent
#DE4963
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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