#7D21AA#7D21AA

#7D21AA is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.4% C 0.205 H 311.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7D21AA
RGBrgb(125, 33, 170)
HSLhsl(280, 67%, 40%)
HSVhsv(280, 81%, 67%)
CMYKcmyk(26.5%, 80.6%, 0%, 33.3%)
CIE-LABlab(34.70, 59.00, -54.35)
CIE-LCHlch(34.70, 80.21, 317.35°)
OKLaboklab(46.38% 0.1348 -0.1541)
OKLCHoklch(46.38% 0.205 311.2)
XYZxyz(16.2556, 8.3504, 38.7779)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D21AA #4EAA21
analogous
#3821AA #7D21AA #AA2193
triadic
#7D21AA #AA7D21 #21AA7D
tetradic
#7D21AA #AA3821 #4EAA21 #2193AA
square
#7D21AA #AA3821 #4EAA21 #2193AA
split-complementary
#7D21AA #93AA21 #21AA38
monochromatic
#320D43 #571777 #7D21AA #A131D7 #B864E1

Accessibility & contrast

On white

7.87
#7D21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7D21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D21AA
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D21AA#FFFFFF#000000##FFFFFF
##7D21AA1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0053A7
Tritanopia (blue-blind)
#774466
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d21aa;
/* rgb */ color: rgb(125, 33, 170);
/* oklch */ color: oklch(46.4% 0.205 311.2);
Tailwind
colors: {
  custom: {
    50: '#a868c4',
    500: '#7d21aa',
    950: '#000000',
  },
}
SCSS
$custom: #7d21aa;
$custom-light: #a868c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d21aa",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 280.292,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46383,
    "c": 0.20474,
    "h": 311.2
  },
  "luminance": 0.0835
}

Semantic roles & 50–950 ramp

primary
#7D21AA
secondary
#82C661
accent
#EA3D76
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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