#7E21BB#7E21BB

#7E21BB is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.9% C 0.220 H 306.7°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7E21BB
RGBrgb(126, 33, 187)
HSLhsl(276, 70%, 43%)
HSVhsv(276, 82%, 73%)
CMYKcmyk(32.6%, 82.4%, 0%, 26.7%)
CIE-LABlab(36.20, 62.75, -62.02)
CIE-LCHlch(36.20, 88.23, 315.34°)
OKLaboklab(47.88% 0.1318 -0.1766)
OKLCHoklch(47.88% 0.22 306.7)
XYZxyz(18.1157, 9.1114, 47.8084)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E21BB #5EBB21
analogous
#3121BB #7E21BB #BB21AB
triadic
#7E21BB #BB7E21 #21BB7E
tetradic
#7E21BB #BB3121 #5EBB21 #21ABBB
square
#7E21BB #BB3121 #5EBB21 #21ABBB
split-complementary
#7E21BB #ABBB21 #21BB31
monochromatic
#380F53 #5B1887 #7E21BB #9D3DDD #B771E6

Accessibility & contrast

On white

7.44
#7E21BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7E21BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E21BB
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E21BB#FFFFFF#000000##FFFFFF
##7E21BB1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#734B70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e21bb;
/* rgb */ color: rgb(126, 33, 187);
/* oklch */ color: oklch(47.9% 0.220 306.7);
Tailwind
colors: {
  custom: {
    50: '#a969d0',
    500: '#7e21bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e21bb;
$custom-light: #a969d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e21bb",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 187
  },
  "hsl": {
    "h": 276.234,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47875,
    "c": 0.22034,
    "h": 306.7
  },
  "luminance": 0.09111
}

Semantic roles & 50–950 ramp

primary
#7E21BB
secondary
#92CC6B
accent
#ED3B81
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7E21BB

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

Preview Lab → · Contrast checker → · Palette generator →

#7E21BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva