#8028A2#8028A2

#8028A2 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.191 H 314.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#8028A2
RGBrgb(128, 40, 162)
HSLhsl(283, 60%, 40%)
HSVhsv(283, 75%, 64%)
CMYKcmyk(21%, 75.3%, 0%, 36.5%)
CIE-LABlab(35.43, 55.43, -48.34)
CIE-LCHlch(35.43, 73.54, 318.91°)
OKLaboklab(46.81% 0.1342 -0.1364)
OKLCHoklch(46.81% 0.191 314.5)
XYZxyz(16.1814, 8.7160, 35.0054)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8028A2 #4AA228
analogous
#4328A2 #8028A2 #A22887
triadic
#8028A2 #A28028 #28A280
tetradic
#8028A2 #A24328 #4AA228 #2887A2
square
#8028A2 #A24328 #4AA228 #2887A2
split-complementary
#8028A2 #87A228 #28A243
monochromatic
#321040 #591C71 #8028A2 #A539CE #BB6ADA

Accessibility & contrast

On white

7.66
#8028A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8028A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8028A2
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8028A2#FFFFFF#000000##FFFFFF
##8028A21.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#21559F
Tritanopia (blue-blind)
#7D4363
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8028a2;
/* rgb */ color: rgb(128, 40, 162);
/* oklch */ color: oklch(46.8% 0.191 314.5);
Tailwind
colors: {
  custom: {
    50: '#a96bbe',
    500: '#8028a2',
    950: '#000000',
  },
}
SCSS
$custom: #8028a2;
$custom-light: #a96bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8028a2",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 283.279,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46805,
    "c": 0.19134,
    "h": 314.5
  },
  "luminance": 0.08715
}

Semantic roles & 50–950 ramp

primary
#8028A2
secondary
#7FC165
accent
#E44471
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #8028A2

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

Preview Lab → · Contrast checker → · Palette generator →

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