#8C28B2#8C28B2

#8C28B2 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.6% C 0.210 H 314.5°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8C28B2
RGBrgb(140, 40, 178)
HSLhsl(283, 63%, 43%)
HSVhsv(283, 78%, 70%)
CMYKcmyk(21.3%, 77.5%, 0%, 30.2%)
CIE-LABlab(38.39, 61.00, -53.04)
CIE-LCHlch(38.39, 80.83, 319.00°)
OKLaboklab(49.62% 0.1471 -0.1498)
OKLCHoklch(49.62% 0.21 314.5)
XYZxyz(19.6085, 10.3081, 43.0676)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C28B2 #4EB228
analogous
#4728B2 #8C28B2 #B22893
triadic
#8C28B2 #B28C28 #28B28C
tetradic
#8C28B2 #B24728 #4EB228 #2893B2
square
#8C28B2 #B24728 #4EB228 #2893B2
split-complementary
#8C28B2 #93B228 #28B247
monochromatic
#3D124E #651D80 #8C28B2 #AC43D5 #C275E0

Accessibility & contrast

On white

6.86
#8C28B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8C28B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C28B2
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C28B2#FFFFFF#000000##FFFFFF
##8C28B21.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#1E5DAF
Tritanopia (blue-blind)
#88486C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8c28b2;
/* rgb */ color: rgb(140, 40, 178);
/* oklch */ color: oklch(49.6% 0.210 314.5);
Tailwind
colors: {
  custom: {
    50: '#b26eca',
    500: '#8c28b2',
    950: '#000000',
  },
}
SCSS
$custom: #8c28b2;
$custom-light: #b26eca;
$custom-dark: #000000;
JSON
{
  "hex": "#8c28b2",
  "rgb": {
    "r": 140,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 283.478,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49621,
    "c": 0.20994,
    "h": 314.5
  },
  "luminance": 0.10307
}

Semantic roles & 50–950 ramp

primary
#8C28B2
secondary
#87C76F
accent
#E6416F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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