#8C28BB#8C28BB

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

Color values

HEX#8C28BB
RGBrgb(140, 40, 187)
HSLhsl(281, 65%, 45%)
HSVhsv(281, 79%, 73%)
CMYKcmyk(25.1%, 78.6%, 0%, 26.7%)
CIE-LABlab(39.04, 62.82, -57.30)
CIE-LCHlch(39.04, 85.03, 317.63°)
OKLaboklab(50.28% 0.1454 -0.1623)
OKLCHoklch(50.28% 0.218 311.9)
XYZxyz(20.5420, 10.6815, 47.9837)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C28BB #57BB28
analogous
#4228BB #8C28BB #BB28A1
triadic
#8C28BB #BB8C28 #28BB8C
tetradic
#8C28BB #BB4228 #57BB28 #28A1BB
square
#8C28BB #BB4228 #57BB28 #28A1BB
split-complementary
#8C28BB #A1BB28 #28BB42
monochromatic
#411256 #661D89 #8C28BB #AA48D8 #C17BE3

Accessibility & contrast

On white

6.70
#8C28BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8C28BB
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C28BB#FFFFFF#000000##FFFFFF
##8C28BB1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#045EB8
Tritanopia (blue-blind)
#864C72
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8c28bb;
/* rgb */ color: rgb(140, 40, 187);
/* oklch */ color: oklch(50.3% 0.218 311.9);
Tailwind
colors: {
  custom: {
    50: '#b36ed0',
    500: '#8c28bb',
    950: '#000000',
  },
}
SCSS
$custom: #8c28bb;
$custom-light: #b36ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c28bb",
  "rgb": {
    "r": 140,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 280.816,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50282,
    "c": 0.21793,
    "h": 311.9
  },
  "luminance": 0.10681
}

Semantic roles & 50–950 ramp

primary
#8C28BB
secondary
#90CB74
accent
#E84076
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8C28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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