#7A21AC#7A21AC

#7A21AC is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.1% C 0.206 H 309.3°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7A21AC
RGBrgb(122, 33, 172)
HSLhsl(278, 68%, 40%)
HSVhsv(278, 81%, 67%)
CMYKcmyk(29.1%, 80.8%, 0%, 32.5%)
CIE-LABlab(34.40, 58.90, -56.05)
CIE-LCHlch(34.40, 81.31, 316.42°)
OKLaboklab(46.13% 0.1303 -0.1592)
OKLCHoklch(46.13% 0.206 309.3)
XYZxyz(16.0148, 8.2042, 39.7616)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A21AC #53AC21
analogous
#3421AC #7A21AC #AC2199
triadic
#7A21AC #AC7A21 #21AC7A
tetradic
#7A21AC #AC3421 #53AC21 #2199AC
square
#7A21AC #AC3421 #53AC21 #2199AC
split-complementary
#7A21AC #99AC21 #21AC34
monochromatic
#310D45 #561779 #7A21AC #9C32D8 #B566E2

Accessibility & contrast

On white

7.95
#7A21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7A21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A21AC
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A21AC#FFFFFF#000000##FFFFFF
##7A21AC1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#724567
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a21ac;
/* rgb */ color: rgb(122, 33, 172);
/* oklch */ color: oklch(46.1% 0.206 309.3);
Tailwind
colors: {
  custom: {
    50: '#a668c6',
    500: '#7a21ac',
    950: '#000000',
  },
}
SCSS
$custom: #7a21ac;
$custom-light: #a668c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a21ac",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 278.417,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46131,
    "c": 0.2057,
    "h": 309.3
  },
  "luminance": 0.08204
}

Semantic roles & 50–950 ramp

primary
#7A21AC
secondary
#86C762
accent
#EB3D7C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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