#8E28C3#8E28C3

#8E28C3 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 51.2% C 0.226 H 310.4°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8E28C3
RGBrgb(142, 40, 195)
HSLhsl(279, 66%, 46%)
HSVhsv(279, 79%, 76%)
CMYKcmyk(27.2%, 79.5%, 0%, 23.5%)
CIE-LABlab(39.93, 64.81, -60.53)
CIE-LCHlch(39.93, 88.68, 316.95°)
OKLaboklab(51.15% 0.1463 -0.1718)
OKLCHoklch(51.15% 0.226 310.4)
XYZxyz(21.7625, 11.2090, 52.6363)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E28C3 #5DC328
analogous
#4128C3 #8E28C3 #C328AA
triadic
#8E28C3 #C38E28 #28C38E
tetradic
#8E28C3 #C34128 #5DC328 #28AAC3
square
#8E28C3 #C34128 #5DC328 #28AAC3
split-complementary
#8E28C3 #AAC328 #28C341
monochromatic
#44135D #691E90 #8E28C3 #AA4EDB #C380E5

Accessibility & contrast

On white

6.48
#8E28C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8E28C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E28C3
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E28C3#FFFFFF#000000##FFFFFF
##8E28C31.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#874F76
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8e28c3;
/* rgb */ color: rgb(142, 40, 195);
/* oklch */ color: oklch(51.2% 0.226 310.4);
Tailwind
colors: {
  custom: {
    50: '#b46fd6',
    500: '#8e28c3',
    950: '#000000',
  },
}
SCSS
$custom: #8e28c3;
$custom-light: #b46fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e28c3",
  "rgb": {
    "r": 142,
    "g": 40,
    "b": 195
  },
  "hsl": {
    "h": 279.484,
    "s": 65.957,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51154,
    "c": 0.22561,
    "h": 310.4
  },
  "luminance": 0.11208
}

Semantic roles & 50–950 ramp

primary
#8E28C3
secondary
#96CE79
accent
#E93F79
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8E28C3

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

Preview Lab → · Contrast checker → · Palette generator →

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