#7A21BD#7A21BD

#7A21BD is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.5% C 0.221 H 304.6°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7A21BD
RGBrgb(122, 33, 189)
HSLhsl(274, 70%, 44%)
HSVhsv(274, 83%, 74%)
CMYKcmyk(35.4%, 82.5%, 0%, 25.9%)
CIE-LABlab(35.79, 62.58, -63.88)
CIE-LCHlch(35.79, 89.43, 314.41°)
OKLaboklab(47.52% 0.1256 -0.1822)
OKLCHoklch(47.52% 0.221 304.6)
XYZxyz(17.7531, 8.8995, 48.9167)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A21BD #64BD21
analogous
#2C21BD #7A21BD #BD21B2
triadic
#7A21BD #BD7A21 #21BD7A
tetradic
#7A21BD #BD2C21 #64BD21 #21B2BD
square
#7A21BD #BD2C21 #64BD21 #21B2BD
split-complementary
#7A21BD #B2BD21 #21BD2C
monochromatic
#370F55 #581889 #7A21BD #993EDD #B472E6

Accessibility & contrast

On white

7.55
#7A21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7A21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A21BD
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A21BD#FFFFFF#000000##FFFFFF
##7A21BD1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#6D4D71
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a21bd;
/* rgb */ color: rgb(122, 33, 189);
/* oklch */ color: oklch(47.5% 0.221 304.6);
Tailwind
colors: {
  custom: {
    50: '#a769d2',
    500: '#7a21bd',
    950: '#000000',
  },
}
SCSS
$custom: #7a21bd;
$custom-light: #a769d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a21bd",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 274.231,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47524,
    "c": 0.22129,
    "h": 304.6
  },
  "luminance": 0.08899
}

Semantic roles & 50–950 ramp

primary
#7A21BD
secondary
#96CD6D
accent
#ED3B87
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7A21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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