#7D21AE#7D21AE

#7D21AE is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.7% C 0.208 H 310.0°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7D21AE
RGBrgb(125, 33, 174)
HSLhsl(279, 68%, 41%)
HSVhsv(279, 81%, 68%)
CMYKcmyk(28.2%, 81%, 0%, 31.8%)
CIE-LABlab(35.01, 59.83, -56.24)
CIE-LCHlch(35.01, 82.11, 316.77°)
OKLaboklab(46.7% 0.1338 -0.1597)
OKLCHoklch(46.7% 0.208 310)
XYZxyz(16.6398, 8.5040, 40.8011)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D21AE #52AE21
analogous
#3621AE #7D21AE #AE2198
triadic
#7D21AE #AE7D21 #21AE7D
tetradic
#7D21AE #AE3621 #52AE21 #2198AE
square
#7D21AE #AE3621 #52AE21 #2198AE
split-complementary
#7D21AE #98AE21 #21AE36
monochromatic
#330D47 #58177B #7D21AE #9F34D8 #B767E2

Accessibility & contrast

On white

7.78
#7D21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7D21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D21AE
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D21AE#FFFFFF#000000##FFFFFF
##7D21AE1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#764669
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d21ae;
/* rgb */ color: rgb(125, 33, 174);
/* oklch */ color: oklch(46.7% 0.208 310.0);
Tailwind
colors: {
  custom: {
    50: '#a869c7',
    500: '#7d21ae',
    950: '#000000',
  },
}
SCSS
$custom: #7d21ae;
$custom-light: #a869c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d21ae",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 279.149,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46696,
    "c": 0.20834,
    "h": 310
  },
  "luminance": 0.08504
}

Semantic roles & 50–950 ramp

primary
#7D21AE
secondary
#86C863
accent
#EB3D79
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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