#8C2FA4#8C2FA4

#8C2FA4 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.190 H 318.6°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8C2FA4
RGBrgb(140, 47, 164)
HSLhsl(288, 55%, 41%)
HSVhsv(288, 71%, 64%)
CMYKcmyk(14.6%, 71.3%, 0%, 35.7%)
CIE-LABlab(38.36, 55.63, -44.74)
CIE-LCHlch(38.36, 71.39, 321.20°)
OKLaboklab(49.3% 0.1422 -0.1255)
OKLCHoklch(49.3% 0.19 318.6)
XYZxyz(18.5317, 10.2897, 36.1247)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FA4 #47A42F
analogous
#522FA4 #8C2FA4 #A42F82
triadic
#8C2FA4 #A48C2F #2FA48C
tetradic
#8C2FA4 #A4522F #47A42F #2F82A4
square
#8C2FA4 #A4522F #47A42F #2F82A4
split-complementary
#8C2FA4 #82A42F #2FA452
monochromatic
#3B1445 #632174 #8C2FA4 #AF46CA #C476D8

Accessibility & contrast

On white

6.87
#8C2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8C2FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FA4
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FA4#FFFFFF#000000##FFFFFF
##8C2FA41.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#355DA1
Tritanopia (blue-blind)
#8C4666
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8c2fa4;
/* rgb */ color: rgb(140, 47, 164);
/* oklch */ color: oklch(49.3% 0.190 318.6);
Tailwind
colors: {
  custom: {
    50: '#b170c0',
    500: '#8c2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fa4;
$custom-light: #b170c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fa4",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 287.692,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49299,
    "c": 0.18963,
    "h": 318.6
  },
  "luminance": 0.10289
}

Semantic roles & 50–950 ramp

primary
#8C2FA4
secondary
#80C06F
accent
#DF4968
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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