#8028B7#8028B7

#8028B7 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.4% C 0.211 H 308.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#8028B7
RGBrgb(128, 40, 183)
HSLhsl(277, 64%, 44%)
HSVhsv(277, 78%, 72%)
CMYKcmyk(30.1%, 78.1%, 0%, 28.2%)
CIE-LABlab(36.98, 59.87, -58.37)
CIE-LCHlch(36.98, 83.62, 315.73°)
OKLaboklab(48.38% 0.1303 -0.1659)
OKLCHoklch(48.38% 0.211 308.1)
XYZxyz(18.2063, 9.5260, 45.6701)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8028B7 #5FB728
analogous
#3828B7 #8028B7 #B728A6
triadic
#8028B7 #B78028 #28B780
tetradic
#8028B7 #B73828 #5FB728 #28A6B7
square
#8028B7 #B73828 #5FB728 #28A6B7
split-complementary
#8028B7 #A6B728 #28B738
monochromatic
#3A1253 #5D1D85 #8028B7 #9F46D6 #B978E1

Accessibility & contrast

On white

7.23
#8028B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8028B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8028B7
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8028B7#FFFFFF#000000##FFFFFF
##8028B71.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0058B4
Tritanopia (blue-blind)
#774C6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8028b7;
/* rgb */ color: rgb(128, 40, 183);
/* oklch */ color: oklch(48.4% 0.211 308.1);
Tailwind
colors: {
  custom: {
    50: '#aa6cce',
    500: '#8028b7',
    950: '#000000',
  },
}
SCSS
$custom: #8028b7;
$custom-light: #aa6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#8028b7",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 276.923,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48381,
    "c": 0.2109,
    "h": 308.1
  },
  "luminance": 0.09526
}

Semantic roles & 50–950 ramp

primary
#8028B7
secondary
#93C972
accent
#E74181
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8028B7

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

Preview Lab → · Contrast checker → · Palette generator →

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