#8C29BA#8C29BA

#8C29BA is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.3% C 0.216 H 312.1°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8C29BA
RGBrgb(140, 41, 186)
HSLhsl(281, 64%, 45%)
HSVhsv(281, 78%, 73%)
CMYKcmyk(24.7%, 78%, 0%, 27.1%)
CIE-LABlab(39.08, 62.28, -56.64)
CIE-LCHlch(39.08, 84.18, 317.71°)
OKLaboklab(50.29% 0.1448 -0.1604)
OKLCHoklch(50.29% 0.216 312.1)
XYZxyz(20.4694, 10.7071, 47.4332)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C29BA #57BA29
analogous
#4429BA #8C29BA #BA299F
triadic
#8C29BA #BA8C29 #29BA8C
tetradic
#8C29BA #BA4429 #57BA29 #299FBA
square
#8C29BA #BA4429 #57BA29 #299FBA
split-complementary
#8C29BA #9FBA29 #29BA44
monochromatic
#411356 #661E88 #8C29BA #AA49D7 #C17BE2

Accessibility & contrast

On white

6.69
#8C29BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8C29BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C29BA
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C29BA#FFFFFF#000000##FFFFFF
##8C29BA1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0B5EB7
Tritanopia (blue-blind)
#864C71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8c29ba;
/* rgb */ color: rgb(140, 41, 186);
/* oklch */ color: oklch(50.3% 0.216 312.1);
Tailwind
colors: {
  custom: {
    50: '#b26ed0',
    500: '#8c29ba',
    950: '#000000',
  },
}
SCSS
$custom: #8c29ba;
$custom-light: #b26ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c29ba",
  "rgb": {
    "r": 140,
    "g": 41,
    "b": 186
  },
  "hsl": {
    "h": 280.966,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5029,
    "c": 0.21608,
    "h": 312.1
  },
  "luminance": 0.10706
}

Semantic roles & 50–950 ramp

primary
#8C29BA
secondary
#90CA75
accent
#E74176
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C29BA

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

Preview Lab → · Contrast checker → · Palette generator →

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