#8021B4#8021B4

#8021B4 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.6% C 0.215 H 309.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8021B4
RGBrgb(128, 33, 180)
HSLhsl(279, 69%, 42%)
HSVhsv(279, 82%, 71%)
CMYKcmyk(28.9%, 81.7%, 0%, 29.4%)
CIE-LABlab(35.93, 61.59, -58.29)
CIE-LCHlch(35.93, 84.80, 316.58°)
OKLaboklab(47.58% 0.1364 -0.1656)
OKLCHoklch(47.58% 0.215 309.5)
XYZxyz(17.6825, 8.9726, 43.9715)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8021B4 #55B421
analogous
#3721B4 #8021B4 #B4219E
triadic
#8021B4 #B48021 #21B480
tetradic
#8021B4 #B43721 #55B421 #219EB4
square
#8021B4 #B43721 #55B421 #219EB4
split-complementary
#8021B4 #9EB421 #21B437
monochromatic
#360E4D #5B1880 #8021B4 #A138DA #B96BE4

Accessibility & contrast

On white

7.52
#8021B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8021B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8021B4
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8021B4#FFFFFF#000000##FFFFFF
##8021B41.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#78486C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8021b4;
/* rgb */ color: rgb(128, 33, 180);
/* oklch */ color: oklch(47.6% 0.215 309.5);
Tailwind
colors: {
  custom: {
    50: '#aa69cb',
    500: '#8021b4',
    950: '#000000',
  },
}
SCSS
$custom: #8021b4;
$custom-light: #aa69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8021b4",
  "rgb": {
    "r": 128,
    "g": 33,
    "b": 180
  },
  "hsl": {
    "h": 278.776,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47576,
    "c": 0.21455,
    "h": 309.5
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#8021B4
secondary
#8ACA67
accent
#EC3C7A
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8021B4

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

Preview Lab → · Contrast checker → · Palette generator →

#8021B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva