#8C2FA2#8C2FA2

#8C2FA2 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.188 H 319.3°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8C2FA2
RGBrgb(140, 47, 162)
HSLhsl(289, 55%, 41%)
HSVhsv(289, 71%, 64%)
CMYKcmyk(13.6%, 71%, 0%, 36.5%)
CIE-LABlab(38.23, 55.24, -43.74)
CIE-LCHlch(38.23, 70.46, 321.63°)
OKLaboklab(49.17% 0.1423 -0.1226)
OKLCHoklch(49.17% 0.188 319.3)
XYZxyz(18.3525, 10.2180, 35.1810)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FA2 #45A22F
analogous
#522FA2 #8C2FA2 #A22F7E
triadic
#8C2FA2 #A28C2F #2FA28C
tetradic
#8C2FA2 #A2522F #45A22F #2F7EA2
square
#8C2FA2 #A2522F #45A22F #2F7EA2
split-complementary
#8C2FA2 #7EA22F #2FA252
monochromatic
#3A1343 #632173 #8C2FA2 #B045C9 #C475D7

Accessibility & contrast

On white

6.90
#8C2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8C2FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FA2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FA2#FFFFFF#000000##FFFFFF
##8C2FA21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#375D9F
Tritanopia (blue-blind)
#8C4565
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8c2fa2;
/* rgb */ color: rgb(140, 47, 162);
/* oklch */ color: oklch(49.2% 0.188 319.3);
Tailwind
colors: {
  custom: {
    50: '#b170be',
    500: '#8c2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fa2;
$custom-light: #b170be;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fa2",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 288.522,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49169,
    "c": 0.18782,
    "h": 319.3
  },
  "luminance": 0.10217
}

Semantic roles & 50–950 ramp

primary
#8C2FA2
secondary
#7EBF6E
accent
#DE4966
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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