#7E21BD#7E21BD

#7E21BD is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 48.0% C 0.222 H 306.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7E21BD
RGBrgb(126, 33, 189)
HSLhsl(276, 70%, 44%)
HSVhsv(276, 83%, 74%)
CMYKcmyk(33.3%, 82.5%, 0%, 25.9%)
CIE-LABlab(36.36, 63.18, -62.93)
CIE-LCHlch(36.36, 89.17, 315.12°)
OKLaboklab(48.04% 0.1312 -0.1793)
OKLCHoklch(48.04% 0.222 306.2)
XYZxyz(18.3313, 9.1976, 48.9439)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E21BD #60BD21
analogous
#3021BD #7E21BD #BD21AE
triadic
#7E21BD #BD7E21 #21BD7E
tetradic
#7E21BD #BD3021 #60BD21 #21AEBD
square
#7E21BD #BD3021 #60BD21 #21AEBD
split-complementary
#7E21BD #AEBD21 #21BD30
monochromatic
#390F55 #5B1889 #7E21BD #9D3EDD #B772E6

Accessibility & contrast

On white

7.40
#7E21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7E21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E21BD
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E21BD#FFFFFF#000000##FFFFFF
##7E21BD1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#724C71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e21bd;
/* rgb */ color: rgb(126, 33, 189);
/* oklch */ color: oklch(48.0% 0.222 306.2);
Tailwind
colors: {
  custom: {
    50: '#aa6ad2',
    500: '#7e21bd',
    950: '#000000',
  },
}
SCSS
$custom: #7e21bd;
$custom-light: #aa6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e21bd",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 275.769,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4804,
    "c": 0.22215,
    "h": 306.2
  },
  "luminance": 0.09197
}

Semantic roles & 50–950 ramp

primary
#7E21BD
secondary
#94CD6D
accent
#ED3B83
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7E21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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