#8C2FAC#8C2FAC

#8C2FAC is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.8% C 0.197 H 315.9°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8C2FAC
RGBrgb(140, 47, 172)
HSLhsl(285, 57%, 43%)
HSVhsv(285, 73%, 67%)
CMYKcmyk(18.6%, 72.7%, 0%, 32.5%)
CIE-LABlab(38.88, 57.23, -48.68)
CIE-LCHlch(38.88, 75.13, 319.61°)
OKLaboklab(49.84% 0.1415 -0.1371)
OKLCHoklch(49.84% 0.197 315.9)
XYZxyz(19.2770, 10.5878, 40.0499)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2FAC #4FAC2F
analogous
#4D2FAC #8C2FAC #AC2F8D
triadic
#8C2FAC #AC8C2F #2FAC8C
tetradic
#8C2FAC #AC4D2F #4FAC2F #2F8DAC
square
#8C2FAC #AC4D2F #4FAC2F #2F8DAC
split-complementary
#8C2FAC #8DAC2F #2FAC4D
monochromatic
#3E154C #65227C #8C2FAC #AC4BCE #C27BDB

Accessibility & contrast

On white

6.74
#8C2FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8C2FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2FAC
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2FAC#FFFFFF#000000##FFFFFF
##8C2FAC1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B0
Deuteranopia (green-blind)
#2D5EA9
Tritanopia (blue-blind)
#8A496B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8c2fac;
/* rgb */ color: rgb(140, 47, 172);
/* oklch */ color: oklch(49.8% 0.197 315.9);
Tailwind
colors: {
  custom: {
    50: '#b170c5',
    500: '#8c2fac',
    950: '#000000',
  },
}
SCSS
$custom: #8c2fac;
$custom-light: #b170c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2fac",
  "rgb": {
    "r": 140,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 284.64,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49836,
    "c": 0.19696,
    "h": 315.9
  },
  "luminance": 0.10587
}

Semantic roles & 50–950 ramp

primary
#8C2FAC
secondary
#88C374
accent
#E0476F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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