#8C28AF#8C28AF

#8C28AF is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.4% C 0.207 H 315.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8C28AF
RGBrgb(140, 40, 175)
HSLhsl(284, 63%, 42%)
HSVhsv(284, 77%, 69%)
CMYKcmyk(20%, 77.1%, 0%, 31.4%)
CIE-LABlab(38.18, 60.41, -51.59)
CIE-LCHlch(38.18, 79.44, 319.50°)
OKLaboklab(49.41% 0.1476 -0.1456)
OKLCHoklch(49.41% 0.207 315.4)
XYZxyz(19.3106, 10.1889, 41.4986)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C28AF #4BAF28
analogous
#4828AF #8C28AF #AF288F
triadic
#8C28AF #AF8C28 #28AF8C
tetradic
#8C28AF #AF4828 #4BAF28 #288FAF
square
#8C28AF #AF4828 #4BAF28 #288FAF
split-complementary
#8C28AF #8FAF28 #28AF48
monochromatic
#3C114B #641D7D #8C28AF #AD41D4 #C373DF

Accessibility & contrast

On white

6.91
#8C28AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8C28AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C28AF
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C28AF#FFFFFF#000000##FFFFFF
##8C28AF1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#235CAC
Tritanopia (blue-blind)
#89476B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8c28af;
/* rgb */ color: rgb(140, 40, 175);
/* oklch */ color: oklch(49.4% 0.207 315.4);
Tailwind
colors: {
  custom: {
    50: '#b26dc8',
    500: '#8c28af',
    950: '#000000',
  },
}
SCSS
$custom: #8c28af;
$custom-light: #b26dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8c28af",
  "rgb": {
    "r": 140,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 284.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49406,
    "c": 0.20729,
    "h": 315.4
  },
  "luminance": 0.10188
}

Semantic roles & 50–950 ramp

primary
#8C28AF
secondary
#84C66D
accent
#E6426C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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