#8C2FA6#8C2FA6

#8C2FA6 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.4% C 0.191 H 317.9°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8C2FA6
RGBrgb(140, 47, 166)
HSLhsl(287, 56%, 42%)
HSVhsv(287, 72%, 65%)
CMYKcmyk(15.7%, 71.7%, 0%, 34.9%)
CIE-LABlab(38.49, 56.03, -45.73)
CIE-LCHlch(38.49, 72.32, 320.78°)
OKLaboklab(49.43% 0.142 -0.1284)
OKLCHoklch(49.43% 0.191 317.9)
XYZxyz(18.7137, 10.3625, 37.0834)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FA6 #49A62F
analogous
#512FA6 #8C2FA6 #A62F85
triadic
#8C2FA6 #A68C2F #2FA68C
tetradic
#8C2FA6 #A6512F #49A62F #2F85A6
square
#8C2FA6 #A6512F #49A62F #2F85A6
split-complementary
#8C2FA6 #85A62F #2FA651
monochromatic
#3C1447 #642176 #8C2FA6 #AE47CB #C377D8

Accessibility & contrast

On white

6.84
#8C2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8C2FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FA6
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FA6#FFFFFF#000000##FFFFFF
##8C2FA61.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#345DA3
Tritanopia (blue-blind)
#8B4767
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8c2fa6;
/* rgb */ color: rgb(140, 47, 166);
/* oklch */ color: oklch(49.4% 0.191 317.9);
Tailwind
colors: {
  custom: {
    50: '#b170c1',
    500: '#8c2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fa6;
$custom-light: #b170c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fa6",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 286.891,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49432,
    "c": 0.19146,
    "h": 317.9
  },
  "luminance": 0.10362
}

Semantic roles & 50–950 ramp

primary
#8C2FA6
secondary
#82C170
accent
#DF496A
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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