#7A21C2#7A21C2

#7A21C2 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.9% C 0.226 H 303.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7A21C2
RGBrgb(122, 33, 194)
HSLhsl(273, 71%, 45%)
HSVhsv(273, 83%, 76%)
CMYKcmyk(37.1%, 83%, 0%, 23.9%)
CIE-LABlab(36.21, 63.68, -66.13)
CIE-LCHlch(36.21, 91.81, 313.92°)
OKLaboklab(47.95% 0.124 -0.1888)
OKLCHoklch(47.95% 0.226 303.3)
XYZxyz(18.3052, 9.1203, 51.8245)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A21C2 #69C221
analogous
#2A21C2 #7A21C2 #C221B9
triadic
#7A21C2 #C27A21 #21C27A
tetradic
#7A21C2 #C22A21 #69C221 #21B9C2
square
#7A21C2 #C22A21 #69C221 #21B9C2
split-complementary
#7A21C2 #B9C221 #21C22A
monochromatic
#380F59 #59188E #7A21C2 #9841DF #B576E8

Accessibility & contrast

On white

7.44
#7A21C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7A21C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A21C2
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A21C2#FFFFFF#000000##FFFFFF
##7A21C21.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#0055BF
Tritanopia (blue-blind)
#6B4F74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a21c2;
/* rgb */ color: rgb(122, 33, 194);
/* oklch */ color: oklch(47.9% 0.226 303.3);
Tailwind
colors: {
  custom: {
    50: '#a769d6',
    500: '#7a21c2',
    950: '#000000',
  },
}
SCSS
$custom: #7a21c2;
$custom-light: #a769d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a21c2",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 273.168,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47949,
    "c": 0.2259,
    "h": 303.3
  },
  "luminance": 0.0912
}

Semantic roles & 50–950 ramp

primary
#7A21C2
secondary
#9ACF70
accent
#EE3A8A
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7A21C2

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

Preview Lab → · Contrast checker → · Palette generator →

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