#8C28C3#8C28C3

#8C28C3 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.9% C 0.225 H 309.7°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#8C28C3
RGBrgb(140, 40, 195)
HSLhsl(279, 66%, 46%)
HSVhsv(279, 79%, 76%)
CMYKcmyk(28.2%, 79.5%, 0%, 23.5%)
CIE-LABlab(39.64, 64.47, -61.02)
CIE-LCHlch(39.64, 88.77, 316.57°)
OKLaboklab(50.89% 0.1437 -0.1733)
OKLCHoklch(50.89% 0.225 309.7)
XYZxyz(21.4224, 11.0336, 52.6204)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C28C3 #5FC328
analogous
#3F28C3 #8C28C3 #C328AC
triadic
#8C28C3 #C38C28 #28C38C
tetradic
#8C28C3 #C33F28 #5FC328 #28ACC3
square
#8C28C3 #C33F28 #5FC328 #28ACC3
split-complementary
#8C28C3 #ACC328 #28C33F
monochromatic
#43135D #681E90 #8C28C3 #A94EDB #C180E5

Accessibility & contrast

On white

6.55
#8C28C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8C28C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C28C3
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C28C3#FFFFFF#000000##FFFFFF
##8C28C31.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#005FC0
Tritanopia (blue-blind)
#845076
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c28c3;
/* rgb */ color: rgb(140, 40, 195);
/* oklch */ color: oklch(50.9% 0.225 309.7);
Tailwind
colors: {
  custom: {
    50: '#b36ed6',
    500: '#8c28c3',
    950: '#000000',
  },
}
SCSS
$custom: #8c28c3;
$custom-light: #b36ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#8c28c3",
  "rgb": {
    "r": 140,
    "g": 40,
    "b": 195
  },
  "hsl": {
    "h": 278.71,
    "s": 65.957,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50889,
    "c": 0.22507,
    "h": 309.7
  },
  "luminance": 0.11033
}

Semantic roles & 50–950 ramp

primary
#8C28C3
secondary
#97CE79
accent
#E93F7B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8C28C3

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

Preview Lab → · Contrast checker → · Palette generator →

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