#8028BA#8028BA

#8028BA is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.214 H 307.3°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8028BA
RGBrgb(128, 40, 186)
HSLhsl(276, 65%, 44%)
HSVhsv(276, 78%, 73%)
CMYKcmyk(31.2%, 78.5%, 0%, 27.1%)
CIE-LABlab(37.21, 60.52, -59.76)
CIE-LCHlch(37.21, 85.06, 315.36°)
OKLaboklab(48.62% 0.1295 -0.17)
OKLCHoklch(48.62% 0.214 307.3)
XYZxyz(18.5219, 9.6522, 47.3322)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8028BA #62BA28
analogous
#3728BA #8028BA #BA28AB
triadic
#8028BA #BA8028 #28BA80
tetradic
#8028BA #BA3728 #62BA28 #28ABBA
square
#8028BA #BA3728 #62BA28 #28ABBA
split-complementary
#8028BA #ABBA28 #28BA37
monochromatic
#3B1255 #5D1D88 #8028BA #9E48D8 #B97AE2

Accessibility & contrast

On white

7.17
#8028BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8028BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8028BA
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8028BA#FFFFFF#000000##FFFFFF
##8028BA1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#764E71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8028ba;
/* rgb */ color: rgb(128, 40, 186);
/* oklch */ color: oklch(48.6% 0.214 307.3);
Tailwind
colors: {
  custom: {
    50: '#aa6cd0',
    500: '#8028ba',
    950: '#000000',
  },
}
SCSS
$custom: #8028ba;
$custom-light: #aa6cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8028ba",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 276.164,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48617,
    "c": 0.2137,
    "h": 307.3
  },
  "luminance": 0.09652
}

Semantic roles & 50–950 ramp

primary
#8028BA
secondary
#96CA73
accent
#E84083
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8028BA

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

Preview Lab → · Contrast checker → · Palette generator →

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