#7021BC#7021BC

#7021BC is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.2% C 0.219 H 300.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7021BC
RGBrgb(112, 33, 188)
HSLhsl(271, 70%, 43%)
HSVhsv(271, 82%, 74%)
CMYKcmyk(40.4%, 82.4%, 0%, 26.3%)
CIE-LABlab(34.32, 60.90, -65.76)
CIE-LCHlch(34.32, 89.62, 312.80°)
OKLaboklab(46.19% 0.1114 -0.1881)
OKLCHoklch(46.19% 0.219 300.6)
XYZxyz(16.3008, 8.1631, 48.2840)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7021BC #6DBC21
analogous
#2321BC #7021BC #BC21BA
triadic
#7021BC #BC7021 #21BC70
tetradic
#7021BC #BC2321 #6DBC21 #21BABC
square
#7021BC #BC2321 #6DBC21 #21BABC
split-complementary
#7021BC #BABC21 #21BC23
monochromatic
#320F54 #511888 #7021BC #8F3DDD #AD71E6

Accessibility & contrast

On white

7.98
#7021BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7021BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7021BC
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7021BC#FFFFFF#000000##FFFFFF
##7021BC1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C0
Deuteranopia (green-blind)
#0050B9
Tritanopia (blue-blind)
#5E4E71
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7021bc;
/* rgb */ color: rgb(112, 33, 188);
/* oklch */ color: oklch(46.2% 0.219 300.6);
Tailwind
colors: {
  custom: {
    50: '#a168d1',
    500: '#7021bc',
    950: '#000000',
  },
}
SCSS
$custom: #7021bc;
$custom-light: #a168d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7021bc",
  "rgb": {
    "r": 112,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 270.581,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46188,
    "c": 0.21855,
    "h": 300.6
  },
  "luminance": 0.08163
}

Semantic roles & 50–950 ramp

primary
#7021BC
secondary
#9BCD6C
accent
#ED3B92
background
#FAF6FD
surface
#F4EBFA
border
#CEC6D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7021BC

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

Preview Lab → · Contrast checker → · Palette generator →

#7021BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva