#7D21A8#7D21A8

#7D21A8 is a mid, highly saturated purple. Relative luminance 0.083; OKLCH L 46.2% C 0.203 H 311.8°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7D21A8
RGBrgb(125, 33, 168)
HSLhsl(281, 67%, 39%)
HSVhsv(281, 80%, 66%)
CMYKcmyk(25.6%, 80.4%, 0%, 34.1%)
CIE-LABlab(34.55, 58.58, -53.40)
CIE-LCHlch(34.55, 79.26, 317.65°)
OKLaboklab(46.23% 0.1352 -0.1513)
OKLCHoklch(46.23% 0.203 311.8)
XYZxyz(16.0679, 8.2753, 37.7891)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D21A8 #4CA821
analogous
#3A21A8 #7D21A8 #A82190
triadic
#7D21A8 #A87D21 #21A87D
tetradic
#7D21A8 #A83A21 #4CA821 #2190A8
square
#7D21A8 #A83A21 #4CA821 #2190A8
split-complementary
#7D21A8 #90A821 #21A83A
monochromatic
#310D42 #571775 #7D21A8 #A130D6 #B863E0

Accessibility & contrast

On white

7.91
#7D21A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7D21A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D21A8
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D21A8#FFFFFF#000000##FFFFFF
##7D21A81.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0053A5
Tritanopia (blue-blind)
#784365
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d21a8;
/* rgb */ color: rgb(125, 33, 168);
/* oklch */ color: oklch(46.2% 0.203 311.8);
Tailwind
colors: {
  custom: {
    50: '#a768c3',
    500: '#7d21a8',
    950: '#000000',
  },
}
SCSS
$custom: #7d21a8;
$custom-light: #a768c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d21a8",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 280.889,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46228,
    "c": 0.20294,
    "h": 311.8
  },
  "luminance": 0.08275
}

Semantic roles & 50–950 ramp

primary
#7D21A8
secondary
#80C55F
accent
#EA3E75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D21A8

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

Preview Lab → · Contrast checker → · Palette generator →

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