#8C2FA5#8C2FA5

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

Color values

HEX#8C2FA5
RGBrgb(140, 47, 165)
HSLhsl(287, 56%, 42%)
HSVhsv(287, 72%, 65%)
CMYKcmyk(15.2%, 71.5%, 0%, 35.3%)
CIE-LABlab(38.42, 55.83, -45.23)
CIE-LCHlch(38.42, 71.85, 320.99°)
OKLaboklab(49.36% 0.1421 -0.1269)
OKLCHoklch(49.36% 0.191 318.2)
XYZxyz(18.6223, 10.3259, 36.6022)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FA5 #48A52F
analogous
#512FA5 #8C2FA5 #A52F83
triadic
#8C2FA5 #A58C2F #2FA58C
tetradic
#8C2FA5 #A5512F #48A52F #2F83A5
square
#8C2FA5 #A5512F #48A52F #2F83A5
split-complementary
#8C2FA5 #83A52F #2FA551
monochromatic
#3B1446 #642175 #8C2FA5 #AF47CB #C376D8

Accessibility & contrast

On white

6.85
#8C2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8C2FA5
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FA5#FFFFFF#000000##FFFFFF
##8C2FA51.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A8
Deuteranopia (green-blind)
#355DA2
Tritanopia (blue-blind)
#8B4667
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8c2fa5;
/* rgb */ color: rgb(140, 47, 165);
/* oklch */ color: oklch(49.4% 0.191 318.2);
Tailwind
colors: {
  custom: {
    50: '#b170c0',
    500: '#8c2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fa5;
$custom-light: #b170c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fa5",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 287.288,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49365,
    "c": 0.19055,
    "h": 318.2
  },
  "luminance": 0.10325
}

Semantic roles & 50–950 ramp

primary
#8C2FA5
secondary
#81C070
accent
#DF4969
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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