#7E21C2#7E21C2

#7E21C2 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.5% C 0.227 H 304.9°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7E21C2
RGBrgb(126, 33, 194)
HSLhsl(275, 71%, 45%)
HSVhsv(275, 83%, 76%)
CMYKcmyk(35.1%, 83%, 0%, 23.9%)
CIE-LABlab(36.78, 64.26, -65.19)
CIE-LCHlch(36.78, 91.54, 314.59°)
OKLaboklab(48.46% 0.1297 -0.1859)
OKLCHoklch(48.46% 0.227 304.9)
XYZxyz(18.8834, 9.4185, 51.8516)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E21C2 #65C221
analogous
#2D21C2 #7E21C2 #C221B6
triadic
#7E21C2 #C27E21 #21C27E
tetradic
#7E21C2 #C22D21 #65C221 #21B6C2
square
#7E21C2 #C22D21 #65C221 #21B6C2
split-complementary
#7E21C2 #B6C221 #21C22D
monochromatic
#3A0F59 #5C188E #7E21C2 #9C41DF #B876E8

Accessibility & contrast

On white

7.28
#7E21C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7E21C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E21C2
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E21C2#FFFFFF#000000##FFFFFF
##7E21C21.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#0057BF
Tritanopia (blue-blind)
#714F74
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e21c2;
/* rgb */ color: rgb(126, 33, 194);
/* oklch */ color: oklch(48.5% 0.227 304.9);
Tailwind
colors: {
  custom: {
    50: '#aa6ad6',
    500: '#7e21c2',
    950: '#000000',
  },
}
SCSS
$custom: #7e21c2;
$custom-light: #aa6ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e21c2",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 274.658,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48457,
    "c": 0.22668,
    "h": 304.9
  },
  "luminance": 0.09418
}

Semantic roles & 50–950 ramp

primary
#7E21C2
secondary
#98CF70
accent
#EE3A86
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7E21C2

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

Preview Lab → · Contrast checker → · Palette generator →

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