#8C28AA#8C28AA

#8C28AA is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.203 H 317.0°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#8C28AA
RGBrgb(140, 40, 170)
HSLhsl(286, 62%, 41%)
HSVhsv(286, 76%, 67%)
CMYKcmyk(17.6%, 76.5%, 0%, 33.3%)
CIE-LABlab(37.84, 59.42, -49.17)
CIE-LCHlch(37.84, 77.13, 320.39°)
OKLaboklab(49.05% 0.1483 -0.1384)
OKLCHoklch(49.05% 0.203 317)
XYZxyz(18.8286, 9.9961, 38.9601)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C28AA #46AA28
analogous
#4B28AA #8C28AA #AA2887
triadic
#8C28AA #AA8C28 #28AA8C
tetradic
#8C28AA #AA4B28 #46AA28 #2887AA
square
#8C28AA #AA4B28 #46AA28 #2887AA
split-complementary
#8C28AA #87AA28 #28AA4B
monochromatic
#3A1147 #631C78 #8C28AA #AF3ED2 #C46FDD

Accessibility & contrast

On white

7.00
#8C28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C28AA
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C28AA#FFFFFF#000000##FFFFFF
##8C28AA1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#2A5CA7
Tritanopia (blue-blind)
#8A4468
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8c28aa;
/* rgb */ color: rgb(140, 40, 170);
/* oklch */ color: oklch(49.1% 0.203 317.0);
Tailwind
colors: {
  custom: {
    50: '#b26dc4',
    500: '#8c28aa',
    950: '#000000',
  },
}
SCSS
$custom: #8c28aa;
$custom-light: #b26dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c28aa",
  "rgb": {
    "r": 140,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 286.154,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.49054,
    "c": 0.20288,
    "h": 317
  },
  "luminance": 0.09995
}

Semantic roles & 50–950 ramp

primary
#8C28AA
secondary
#7FC46A
accent
#E54368
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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