#8028C6#8028C6

#8028C6 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.6% C 0.225 H 304.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#8028C6
RGBrgb(128, 40, 198)
HSLhsl(273, 66%, 47%)
HSVhsv(273, 80%, 78%)
CMYKcmyk(35.4%, 79.8%, 0%, 22.4%)
CIE-LABlab(38.17, 63.16, -65.24)
CIE-LCHlch(38.17, 90.81, 314.07°)
OKLaboklab(49.59% 0.1265 -0.186)
OKLCHoklch(49.59% 0.225 304.2)
XYZxyz(19.8516, 10.1841, 54.3350)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8028C6 #6EC628
analogous
#3128C6 #8028C6 #C628BD
triadic
#8028C6 #C68028 #28C680
tetradic
#8028C6 #C63128 #6EC628 #28BDC6
square
#8028C6 #C63128 #6EC628 #28BDC6
split-complementary
#8028C6 #BDC628 #28C631
monochromatic
#3E1360 #5F1E93 #8028C6 #9E50DC #BA83E6

Accessibility & contrast

On white

6.92
#8028C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8028C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8028C6
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8028C6#FFFFFF#000000##FFFFFF
##8028C61.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CA
Deuteranopia (green-blind)
#005AC3
Tritanopia (blue-blind)
#725378
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8028c6;
/* rgb */ color: rgb(128, 40, 198);
/* oklch */ color: oklch(49.6% 0.225 304.2);
Tailwind
colors: {
  custom: {
    50: '#ab6dd8',
    500: '#8028c6',
    950: '#000000',
  },
}
SCSS
$custom: #8028c6;
$custom-light: #ab6dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8028c6",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 198
  },
  "hsl": {
    "h": 273.418,
    "s": 66.387,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49585,
    "c": 0.22496,
    "h": 304.2
  },
  "luminance": 0.10184
}

Semantic roles & 50–950 ramp

primary
#8028C6
secondary
#A0CF7B
accent
#E93E8A
background
#FBF6FD
surface
#F6ECFB
border
#D0C7D4
text
#110815
muted
#807A83

Preview Lab

Preview with #8028C6

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

Preview Lab → · Contrast checker → · Palette generator →

#8028C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva