#7A21AE#7A21AE

#7A21AE is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.3% C 0.208 H 308.7°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7A21AE
RGBrgb(122, 33, 174)
HSLhsl(278, 68%, 41%)
HSVhsv(278, 81%, 68%)
CMYKcmyk(29.9%, 81%, 0%, 31.8%)
CIE-LABlab(34.56, 59.33, -56.99)
CIE-LCHlch(34.56, 82.26, 316.15°)
OKLaboklab(46.29% 0.1297 -0.162)
OKLCHoklch(46.29% 0.208 308.7)
XYZxyz(16.2083, 8.2816, 40.7808)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A21AE #55AE21
analogous
#3321AE #7A21AE #AE219B
triadic
#7A21AE #AE7A21 #21AE7A
tetradic
#7A21AE #AE3321 #55AE21 #219BAE
square
#7A21AE #AE3321 #55AE21 #219BAE
split-complementary
#7A21AE #9BAE21 #21AE33
monochromatic
#320D47 #56177B #7A21AE #9C34D8 #B567E2

Accessibility & contrast

On white

7.91
#7A21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7A21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A21AE
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A21AE#FFFFFF#000000##FFFFFF
##7A21AE1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#0052AB
Tritanopia (blue-blind)
#724669
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a21ae;
/* rgb */ color: rgb(122, 33, 174);
/* oklch */ color: oklch(46.3% 0.208 308.7);
Tailwind
colors: {
  custom: {
    50: '#a668c7',
    500: '#7a21ae',
    950: '#000000',
  },
}
SCSS
$custom: #7a21ae;
$custom-light: #a668c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a21ae",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 277.872,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4629,
    "c": 0.20753,
    "h": 308.7
  },
  "luminance": 0.08281
}

Semantic roles & 50–950 ramp

primary
#7A21AE
secondary
#88C863
accent
#EB3D7D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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