#7D21A2#7D21A2

#7D21A2 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.198 H 313.7°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#7D21A2
RGBrgb(125, 33, 162)
HSLhsl(283, 66%, 38%)
HSVhsv(283, 80%, 64%)
CMYKcmyk(22.8%, 79.6%, 0%, 36.5%)
CIE-LABlab(34.10, 57.35, -50.51)
CIE-LCHlch(34.10, 76.42, 318.63°)
OKLaboklab(45.77% 0.1365 -0.1428)
OKLCHoklch(45.77% 0.198 313.7)
XYZxyz(15.5218, 8.0568, 34.9129)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D21A2 #46A221
analogous
#3D21A2 #7D21A2 #A22186
triadic
#7D21A2 #A27D21 #21A27D
tetradic
#7D21A2 #A23D21 #46A221 #2186A2
square
#7D21A2 #A23D21 #46A221 #2186A2
split-complementary
#7D21A2 #86A221 #21A23D
monochromatic
#2F0C3C #56176F #7D21A2 #A42CD4 #BA5FDE

Accessibility & contrast

On white

8.04
#7D21A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7D21A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D21A2
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D21A2#FFFFFF#000000##FFFFFF
##7D21A21.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#12529F
Tritanopia (blue-blind)
#794062
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d21a2;
/* rgb */ color: rgb(125, 33, 162);
/* oklch */ color: oklch(45.8% 0.198 313.7);
Tailwind
colors: {
  custom: {
    50: '#a768be',
    500: '#7d21a2',
    950: '#000000',
  },
}
SCSS
$custom: #7d21a2;
$custom-light: #a768be;
$custom-dark: #000000;
JSON
{
  "hex": "#7d21a2",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 282.791,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45772,
    "c": 0.19756,
    "h": 313.7
  },
  "luminance": 0.08056
}

Semantic roles & 50–950 ramp

primary
#7D21A2
secondary
#79C35C
accent
#E93F70
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D21A2

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

Preview Lab → · Contrast checker → · Palette generator →

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