#7D21A5#7D21A5

#7D21A5 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.0% C 0.200 H 312.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7D21A5
RGBrgb(125, 33, 165)
HSLhsl(282, 67%, 39%)
HSVhsv(282, 80%, 65%)
CMYKcmyk(24.2%, 80%, 0%, 35.3%)
CIE-LABlab(34.32, 57.96, -51.96)
CIE-LCHlch(34.32, 77.84, 318.13°)
OKLaboklab(46% 0.1359 -0.1471)
OKLCHoklch(46% 0.2 312.7)
XYZxyz(15.7916, 8.1648, 36.3341)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D21A5 #49A521
analogous
#3B21A5 #7D21A5 #A5218B
triadic
#7D21A5 #A57D21 #21A57D
tetradic
#7D21A5 #A53B21 #49A521 #218BA5
square
#7D21A5 #A53B21 #49A521 #218BA5
split-complementary
#7D21A5 #8BA521 #21A53B
monochromatic
#300D3F #561772 #7D21A5 #A32ED5 #B961DF

Accessibility & contrast

On white

7.98
#7D21A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7D21A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D21A5
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D21A5#FFFFFF#000000##FFFFFF
##7D21A51.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#0953A2
Tritanopia (blue-blind)
#784163
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d21a5;
/* rgb */ color: rgb(125, 33, 165);
/* oklch */ color: oklch(46.0% 0.200 312.7);
Tailwind
colors: {
  custom: {
    50: '#a768c0',
    500: '#7d21a5',
    950: '#000000',
  },
}
SCSS
$custom: #7d21a5;
$custom-light: #a768c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d21a5",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 165
  },
  "hsl": {
    "h": 281.818,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45999,
    "c": 0.20024,
    "h": 312.7
  },
  "luminance": 0.08164
}

Semantic roles & 50–950 ramp

primary
#7D21A5
secondary
#7DC45E
accent
#EA3E72
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D21A5

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

Preview Lab → · Contrast checker → · Palette generator →

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