#8E28CA#8E28CA

#8E28CA is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.7% C 0.232 H 308.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8E28CA
RGBrgb(142, 40, 202)
HSLhsl(278, 67%, 47%)
HSVhsv(278, 80%, 79%)
CMYKcmyk(29.7%, 80.2%, 0%, 20.8%)
CIE-LABlab(40.46, 66.26, -63.75)
CIE-LCHlch(40.46, 91.94, 316.11°)
OKLaboklab(51.69% 0.1446 -0.1812)
OKLCHoklch(51.69% 0.232 308.6)
XYZxyz(22.5726, 11.5330, 56.9026)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E28CA #64CA28
analogous
#3D28CA #8E28CA #CA28B5
triadic
#8E28CA #CA8E28 #28CA8E
tetradic
#8E28CA #CA3D28 #64CA28 #28B5CA
square
#8E28CA #CA3D28 #64CA28 #28B5CA
split-complementary
#8E28CA #B5CA28 #28CA3D
monochromatic
#461464 #6A1E97 #8E28CA #AA52DD #C385E7

Accessibility & contrast

On white

6.35
#8E28CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8E28CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E28CA
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E28CA#FFFFFF#000000##FFFFFF
##8E28CA1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#84537A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8e28ca;
/* rgb */ color: rgb(142, 40, 202);
/* oklch */ color: oklch(51.7% 0.232 308.6);
Tailwind
colors: {
  custom: {
    50: '#b56fdb',
    500: '#8e28ca',
    950: '#000000',
  },
}
SCSS
$custom: #8e28ca;
$custom-light: #b56fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e28ca",
  "rgb": {
    "r": 142,
    "g": 40,
    "b": 202
  },
  "hsl": {
    "h": 277.778,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51694,
    "c": 0.23184,
    "h": 308.6
  },
  "luminance": 0.11533
}

Semantic roles & 50–950 ramp

primary
#8E28CA
secondary
#9CD07E
accent
#EA3E7E
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8E28CA

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

Preview Lab → · Contrast checker → · Palette generator →

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