#8C2CA2#8C2CA2

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

Color values

HEX#8C2CA2
RGBrgb(140, 44, 162)
HSLhsl(289, 57%, 40%)
HSVhsv(289, 73%, 64%)
CMYKcmyk(13.6%, 72.8%, 0%, 36.5%)
CIE-LABlab(37.82, 56.41, -44.40)
CIE-LCHlch(37.82, 71.79, 321.79°)
OKLaboklab(48.87% 0.1454 -0.1245)
OKLCHoklch(48.87% 0.191 319.4)
XYZxyz(18.2366, 9.9863, 35.1424)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2CA2 #42A22C
analogous
#512CA2 #8C2CA2 #A22C7D
triadic
#8C2CA2 #A28C2C #2CA28C
tetradic
#8C2CA2 #A2512C #42A22C #2C7DA2
square
#8C2CA2 #A2512C #42A22C #2C7DA2
split-complementary
#8C2CA2 #7DA22C #2CA251
monochromatic
#391242 #621F72 #8C2CA2 #B140CB #C570D8

Accessibility & contrast

On white

7.01
#8C2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8C2CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2CA2
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2CA2#FFFFFF#000000##FFFFFF
##8C2CA21.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#355C9F
Tritanopia (blue-blind)
#8C4364
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8c2ca2;
/* rgb */ color: rgb(140, 44, 162);
/* oklch */ color: oklch(48.9% 0.191 319.4);
Tailwind
colors: {
  custom: {
    50: '#b16fbe',
    500: '#8c2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ca2;
$custom-light: #b16fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ca2",
  "rgb": {
    "r": 140,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 288.814,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48874,
    "c": 0.19141,
    "h": 319.4
  },
  "luminance": 0.09985
}

Semantic roles & 50–950 ramp

primary
#8C2CA2
secondary
#7ABF6A
accent
#E14764
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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