#8C2CA1#8C2CA1

#8C2CA1 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.8% C 0.191 H 319.8°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8C2CA1
RGBrgb(140, 44, 161)
HSLhsl(289, 57%, 40%)
HSVhsv(289, 73%, 63%)
CMYKcmyk(13%, 72.7%, 0%, 36.9%)
CIE-LABlab(37.75, 56.22, -43.90)
CIE-LCHlch(37.75, 71.33, 322.01°)
OKLaboklab(48.81% 0.1455 -0.123)
OKLCHoklch(48.81% 0.191 319.8)
XYZxyz(18.1481, 9.9509, 34.6761)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2CA1 #41A12C
analogous
#522CA1 #8C2CA1 #A12C7B
triadic
#8C2CA1 #A18C2C #2CA18C
tetradic
#8C2CA1 #A1522C #41A12C #2C7BA1
square
#8C2CA1 #A1522C #41A12C #2C7BA1
split-complementary
#8C2CA1 #7BA12C #2CA152
monochromatic
#381241 #621F71 #8C2CA1 #B240CB #C570D8

Accessibility & contrast

On white

7.02
#8C2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8C2CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2CA1
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2CA1#FFFFFF#000000##FFFFFF
##8C2CA11.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#365C9E
Tritanopia (blue-blind)
#8C4364
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8c2ca1;
/* rgb */ color: rgb(140, 44, 161);
/* oklch */ color: oklch(48.8% 0.191 319.8);
Tailwind
colors: {
  custom: {
    50: '#b16fbd',
    500: '#8c2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ca1;
$custom-light: #b16fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ca1",
  "rgb": {
    "r": 140,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 289.231,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48808,
    "c": 0.19052,
    "h": 319.8
  },
  "luminance": 0.0995
}

Semantic roles & 50–950 ramp

primary
#8C2CA1
secondary
#79BF6A
accent
#E04763
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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