#8C28BD#8C28BD

#8C28BD is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.4% C 0.220 H 311.3°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8C28BD
RGBrgb(140, 40, 189)
HSLhsl(280, 65%, 45%)
HSVhsv(280, 79%, 74%)
CMYKcmyk(25.9%, 78.8%, 0%, 25.9%)
CIE-LABlab(39.19, 63.23, -58.24)
CIE-LCHlch(39.19, 85.97, 317.35°)
OKLaboklab(50.43% 0.145 -0.1651)
OKLCHoklch(50.43% 0.22 311.3)
XYZxyz(20.7576, 10.7677, 49.1191)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C28BD #59BD28
analogous
#4128BD #8C28BD #BD28A4
triadic
#8C28BD #BD8C28 #28BD8C
tetradic
#8C28BD #BD4128 #59BD28 #28A4BD
square
#8C28BD #BD4128 #59BD28 #28A4BD
split-complementary
#8C28BD #A4BD28 #28BD41
monochromatic
#411358 #671D8A #8C28BD #AA4AD9 #C17CE3

Accessibility & contrast

On white

6.66
#8C28BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8C28BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C28BD
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C28BD#FFFFFF#000000##FFFFFF
##8C28BD1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#864D73
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8c28bd;
/* rgb */ color: rgb(140, 40, 189);
/* oklch */ color: oklch(50.4% 0.220 311.3);
Tailwind
colors: {
  custom: {
    50: '#b36ed2',
    500: '#8c28bd',
    950: '#000000',
  },
}
SCSS
$custom: #8c28bd;
$custom-light: #b36ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c28bd",
  "rgb": {
    "r": 140,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 280.268,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50432,
    "c": 0.21971,
    "h": 311.3
  },
  "luminance": 0.10767
}

Semantic roles & 50–950 ramp

primary
#8C28BD
secondary
#92CB75
accent
#E84077
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8C28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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