#7A21AA#7A21AA

#7A21AA is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.0% C 0.204 H 309.9°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7A21AA
RGBrgb(122, 33, 170)
HSLhsl(279, 67%, 40%)
HSVhsv(279, 81%, 67%)
CMYKcmyk(28.2%, 80.6%, 0%, 33.3%)
CIE-LABlab(34.25, 58.48, -55.11)
CIE-LCHlch(34.25, 80.35, 316.70°)
OKLaboklab(45.97% 0.1307 -0.1564)
OKLCHoklch(45.97% 0.204 309.9)
XYZxyz(15.8241, 8.1279, 38.7577)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A21AA #51AA21
analogous
#3521AA #7A21AA #AA2196
triadic
#7A21AA #AA7A21 #21AA7A
tetradic
#7A21AA #AA3521 #51AA21 #2196AA
square
#7A21AA #AA3521 #51AA21 #2196AA
split-complementary
#7A21AA #96AA21 #21AA35
monochromatic
#300D43 #551777 #7A21AA #9D31D7 #B564E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A21AA#FFFFFF#000000##FFFFFF
##7A21AA1.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)
#004DAE
Deuteranopia (green-blind)
#0052A7
Tritanopia (blue-blind)
#734466
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a21aa;
/* rgb */ color: rgb(122, 33, 170);
/* oklch */ color: oklch(46.0% 0.204 309.9);
Tailwind
colors: {
  custom: {
    50: '#a668c4',
    500: '#7a21aa',
    950: '#000000',
  },
}
SCSS
$custom: #7a21aa;
$custom-light: #a668c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a21aa",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 278.978,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.20387,
    "h": 309.9
  },
  "luminance": 0.08128
}

Semantic roles & 50–950 ramp

primary
#7A21AA
secondary
#84C661
accent
#EA3D7A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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