#7A21A2#7A21A2

#7A21A2 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.4% C 0.197 H 312.4°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7A21A2
RGBrgb(122, 33, 162)
HSLhsl(281, 66%, 38%)
HSVhsv(281, 80%, 64%)
CMYKcmyk(24.7%, 79.6%, 0%, 36.5%)
CIE-LABlab(33.64, 56.80, -51.29)
CIE-LCHlch(33.64, 76.52, 317.92°)
OKLaboklab(45.35% 0.1325 -0.1452)
OKLCHoklch(45.35% 0.197 312.4)
XYZxyz(15.0903, 7.8344, 34.8927)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A21A2 #49A221
analogous
#3921A2 #7A21A2 #A22189
triadic
#7A21A2 #A27A21 #21A27A
tetradic
#7A21A2 #A23921 #49A221 #2189A2
square
#7A21A2 #A23921 #49A221 #2189A2
split-complementary
#7A21A2 #89A221 #21A239
monochromatic
#2D0C3C #54176F #7A21A2 #A02CD4 #B75FDE

Accessibility & contrast

On white

8.18
#7A21A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7A21A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A21A2
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A21A2#FFFFFF#000000##FFFFFF
##7A21A21.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#07519F
Tritanopia (blue-blind)
#754162
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a21a2;
/* rgb */ color: rgb(122, 33, 162);
/* oklch */ color: oklch(45.4% 0.197 312.4);
Tailwind
colors: {
  custom: {
    50: '#a568be',
    500: '#7a21a2',
    950: '#000000',
  },
}
SCSS
$custom: #7a21a2;
$custom-light: #a568be;
$custom-dark: #000000;
JSON
{
  "hex": "#7a21a2",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 281.395,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45351,
    "c": 0.1966,
    "h": 312.4
  },
  "luminance": 0.07834
}

Semantic roles & 50–950 ramp

primary
#7A21A2
secondary
#7CC35C
accent
#E93F74
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A21A2

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

Preview Lab → · Contrast checker → · Palette generator →

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