#8C2FA7#8C2FA7

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

Color values

HEX#8C2FA7
RGBrgb(140, 47, 167)
HSLhsl(287, 56%, 42%)
HSVhsv(287, 72%, 65%)
CMYKcmyk(16.2%, 71.9%, 0%, 34.5%)
CIE-LABlab(38.55, 56.23, -46.23)
CIE-LCHlch(38.55, 72.79, 320.58°)
OKLaboklab(49.5% 0.1419 -0.1298)
OKLCHoklch(49.5% 0.192 317.5)
XYZxyz(18.8058, 10.3993, 37.5684)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FA7 #4AA72F
analogous
#502FA7 #8C2FA7 #A72F86
triadic
#8C2FA7 #A78C2F #2FA78C
tetradic
#8C2FA7 #A7502F #4AA72F #2F86A7
square
#8C2FA7 #A7502F #4AA72F #2F86A7
split-complementary
#8C2FA7 #86A72F #2FA750
monochromatic
#3C1447 #642277 #8C2FA7 #AE48CB #C378D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C2FA7#FFFFFF#000000##FFFFFF
##8C2FA71.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)
#0055AA
Deuteranopia (green-blind)
#335EA4
Tritanopia (blue-blind)
#8B4768
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8c2fa7;
/* rgb */ color: rgb(140, 47, 167);
/* oklch */ color: oklch(49.5% 0.192 317.5);
Tailwind
colors: {
  custom: {
    50: '#b170c2',
    500: '#8c2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fa7;
$custom-light: #b170c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fa7",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 286.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49498,
    "c": 0.19237,
    "h": 317.5
  },
  "luminance": 0.10398
}

Semantic roles & 50–950 ramp

primary
#8C2FA7
secondary
#83C171
accent
#DF486A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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