#8C2CA9#8C2CA9

#8C2CA9 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.198 H 317.1°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#8C2CA9
RGBrgb(140, 44, 169)
HSLhsl(286, 59%, 42%)
HSVhsv(286, 74%, 66%)
CMYKcmyk(17.2%, 74%, 0%, 33.7%)
CIE-LABlab(38.27, 57.78, -47.86)
CIE-LCHlch(38.27, 75.03, 320.36°)
OKLaboklab(49.34% 0.1447 -0.1346)
OKLCHoklch(49.34% 0.198 317.1)
XYZxyz(18.8763, 10.2422, 38.5111)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2CA9 #49A92C
analogous
#4E2CA9 #8C2CA9 #A92C88
triadic
#8C2CA9 #A98C2C #2CA98C
tetradic
#8C2CA9 #A94E2C #49A92C #2C88A9
square
#8C2CA9 #A94E2C #49A92C #2C88A9
split-complementary
#8C2CA9 #88A92C #2CA94E
monochromatic
#3C1348 #641F78 #8C2CA9 #AE44CE #C374DB

Accessibility & contrast

On white

6.89
#8C2CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8C2CA9
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2CA9#FFFFFF#000000##FFFFFF
##8C2CA91.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AC
Deuteranopia (green-blind)
#2E5DA6
Tritanopia (blue-blind)
#8B4668
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8c2ca9;
/* rgb */ color: rgb(140, 44, 169);
/* oklch */ color: oklch(49.3% 0.198 317.1);
Tailwind
colors: {
  custom: {
    50: '#b16fc3',
    500: '#8c2ca9',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ca9;
$custom-light: #b16fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ca9",
  "rgb": {
    "r": 140,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 286.08,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49344,
    "c": 0.19767,
    "h": 317.1
  },
  "luminance": 0.10241
}

Semantic roles & 50–950 ramp

primary
#8C2CA9
secondary
#82C36E
accent
#E2466A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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