#8028B2#8028B2

#8028B2 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.206 H 309.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#8028B2
RGBrgb(128, 40, 178)
HSLhsl(278, 63%, 43%)
HSVhsv(278, 78%, 70%)
CMYKcmyk(28.1%, 77.5%, 0%, 30.2%)
CIE-LABlab(36.60, 58.79, -56.03)
CIE-LCHlch(36.60, 81.21, 316.38°)
OKLaboklab(47.99% 0.1313 -0.159)
OKLCHoklch(47.99% 0.206 309.6)
XYZxyz(17.6951, 9.3215, 42.9779)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8028B2 #5AB228
analogous
#3B28B2 #8028B2 #B2289F
triadic
#8028B2 #B28028 #28B280
tetradic
#8028B2 #B23B28 #5AB228 #289FB2
square
#8028B2 #B23B28 #5AB228 #289FB2
split-complementary
#8028B2 #9FB228 #28B23B
monochromatic
#38124E #5C1D80 #8028B2 #A043D5 #B975E0

Accessibility & contrast

On white

7.33
#8028B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8028B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8028B2
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8028B2#FFFFFF#000000##FFFFFF
##8028B21.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#794A6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8028b2;
/* rgb */ color: rgb(128, 40, 178);
/* oklch */ color: oklch(48.0% 0.206 309.6);
Tailwind
colors: {
  custom: {
    50: '#aa6cca',
    500: '#8028b2',
    950: '#000000',
  },
}
SCSS
$custom: #8028b2;
$custom-light: #aa6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#8028b2",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 278.261,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47993,
    "c": 0.20622,
    "h": 309.6
  },
  "luminance": 0.09321
}

Semantic roles & 50–950 ramp

primary
#8028B2
secondary
#8FC76F
accent
#E6417D
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8028B2

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

Preview Lab → · Contrast checker → · Palette generator →

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