#7E21A2#7E21A2

#7E21A2 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.198 H 314.1°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7E21A2
RGBrgb(126, 33, 162)
HSLhsl(283, 66%, 38%)
HSVhsv(283, 80%, 64%)
CMYKcmyk(22.2%, 79.6%, 0%, 36.5%)
CIE-LABlab(34.26, 57.53, -50.25)
CIE-LCHlch(34.26, 76.39, 318.87°)
OKLaboklab(45.91% 0.1378 -0.142)
OKLCHoklch(45.91% 0.198 314.1)
XYZxyz(15.6685, 8.1325, 34.9198)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E21A2 #45A221
analogous
#3D21A2 #7E21A2 #A22185
triadic
#7E21A2 #A27E21 #21A27E
tetradic
#7E21A2 #A23D21 #45A221 #2185A2
square
#7E21A2 #A23D21 #45A221 #2185A2
split-complementary
#7E21A2 #85A221 #21A23D
monochromatic
#2F0C3C #56176F #7E21A2 #A52CD4 #BB5FDE

Accessibility & contrast

On white

8.00
#7E21A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E21A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E21A2
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E21A2#FFFFFF#000000##FFFFFF
##7E21A21.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#15539F
Tritanopia (blue-blind)
#7A4062
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e21a2;
/* rgb */ color: rgb(126, 33, 162);
/* oklch */ color: oklch(45.9% 0.198 314.1);
Tailwind
colors: {
  custom: {
    50: '#a868be',
    500: '#7e21a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e21a2;
$custom-light: #a868be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e21a2",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 283.256,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45914,
    "c": 0.19789,
    "h": 314.1
  },
  "luminance": 0.08132
}

Semantic roles & 50–950 ramp

primary
#7E21A2
secondary
#79C35C
accent
#E93F6E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E21A2

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

Preview Lab → · Contrast checker → · Palette generator →

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