#8C2FA3#8C2FA3

#8C2FA3 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.2% C 0.189 H 318.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8C2FA3
RGBrgb(140, 47, 163)
HSLhsl(288, 55%, 41%)
HSVhsv(288, 71%, 64%)
CMYKcmyk(14.1%, 71.2%, 0%, 36.1%)
CIE-LABlab(38.29, 55.44, -44.24)
CIE-LCHlch(38.29, 70.92, 321.41°)
OKLaboklab(49.23% 0.1422 -0.124)
OKLCHoklch(49.23% 0.189 318.9)
XYZxyz(18.4417, 10.2537, 35.6510)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FA3 #46A32F
analogous
#522FA3 #8C2FA3 #A32F80
triadic
#8C2FA3 #A38C2F #2FA38C
tetradic
#8C2FA3 #A3522F #46A32F #2F80A3
square
#8C2FA3 #A3522F #46A32F #2F80A3
split-complementary
#8C2FA3 #80A32F #2FA352
monochromatic
#3A1444 #632173 #8C2FA3 #AF46CA #C475D7

Accessibility & contrast

On white

6.88
#8C2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8C2FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FA3
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FA3#FFFFFF#000000##FFFFFF
##8C2FA31.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A6
Deuteranopia (green-blind)
#365DA0
Tritanopia (blue-blind)
#8C4566
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8c2fa3;
/* rgb */ color: rgb(140, 47, 163);
/* oklch */ color: oklch(49.2% 0.189 318.9);
Tailwind
colors: {
  custom: {
    50: '#b170bf',
    500: '#8c2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fa3;
$custom-light: #b170bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fa3",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 288.103,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.49234,
    "c": 0.18872,
    "h": 318.9
  },
  "luminance": 0.10253
}

Semantic roles & 50–950 ramp

primary
#8C2FA3
secondary
#7FBF6F
accent
#DF4967
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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