#8021B2#8021B2

#8021B2 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.213 H 310.1°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#8021B2
RGBrgb(128, 33, 178)
HSLhsl(279, 69%, 41%)
HSVhsv(279, 81%, 70%)
CMYKcmyk(28.1%, 81.5%, 0%, 30.2%)
CIE-LABlab(35.77, 61.17, -57.36)
CIE-LCHlch(35.77, 83.86, 316.84°)
OKLaboklab(47.42% 0.1369 -0.1629)
OKLCHoklch(47.42% 0.213 310.1)
XYZxyz(17.4802, 8.8916, 42.9063)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8021B2 #53B221
analogous
#3821B2 #8021B2 #B2219C
triadic
#8021B2 #B28021 #21B280
tetradic
#8021B2 #B23821 #53B221 #219CB2
square
#8021B2 #B23821 #53B221 #219CB2
split-complementary
#8021B2 #9CB221 #21B238
monochromatic
#360E4B #5B177E #8021B2 #A136DA #BA6AE3

Accessibility & contrast

On white

7.56
#8021B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8021B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8021B2
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8021B2#FFFFFF#000000##FFFFFF
##8021B21.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#79476B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8021b2;
/* rgb */ color: rgb(128, 33, 178);
/* oklch */ color: oklch(47.4% 0.213 310.1);
Tailwind
colors: {
  custom: {
    50: '#aa69ca',
    500: '#8021b2',
    950: '#000000',
  },
}
SCSS
$custom: #8021b2;
$custom-light: #aa69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8021b2",
  "rgb": {
    "r": 128,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 279.31,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47418,
    "c": 0.21277,
    "h": 310.1
  },
  "luminance": 0.08891
}

Semantic roles & 50–950 ramp

primary
#8021B2
secondary
#88C966
accent
#EC3C79
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8021B2

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

Preview Lab → · Contrast checker → · Palette generator →

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