#8D28C3#8D28C3

#8D28C3 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 51.0% C 0.225 H 310.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#8D28C3
RGBrgb(141, 40, 195)
HSLhsl(279, 66%, 46%)
HSVhsv(279, 79%, 76%)
CMYKcmyk(27.7%, 79.5%, 0%, 23.5%)
CIE-LABlab(39.78, 64.64, -60.78)
CIE-LCHlch(39.78, 88.73, 316.76°)
OKLaboklab(51.02% 0.145 -0.1725)
OKLCHoklch(51.02% 0.225 310)
XYZxyz(21.5917, 11.1209, 52.6283)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D28C3 #5EC328
analogous
#4028C3 #8D28C3 #C328AB
triadic
#8D28C3 #C38D28 #28C38D
tetradic
#8D28C3 #C34028 #5EC328 #28ABC3
square
#8D28C3 #C34028 #5EC328 #28ABC3
split-complementary
#8D28C3 #ABC328 #28C340
monochromatic
#44135D #681E90 #8D28C3 #A94EDB #C280E5

Accessibility & contrast

On white

6.51
#8D28C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8D28C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D28C3
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D28C3#FFFFFF#000000##FFFFFF
##8D28C31.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#005FC0
Tritanopia (blue-blind)
#855076
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8d28c3;
/* rgb */ color: rgb(141, 40, 195);
/* oklch */ color: oklch(51.0% 0.225 310.0);
Tailwind
colors: {
  custom: {
    50: '#b46fd6',
    500: '#8d28c3',
    950: '#000000',
  },
}
SCSS
$custom: #8d28c3;
$custom-light: #b46fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d28c3",
  "rgb": {
    "r": 141,
    "g": 40,
    "b": 195
  },
  "hsl": {
    "h": 279.097,
    "s": 65.957,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51021,
    "c": 0.22534,
    "h": 310
  },
  "luminance": 0.1112
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8D28C3

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

Preview Lab → · Contrast checker → · Palette generator →

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