#7D21A9#7D21A9

#7D21A9 is a mid, highly saturated purple. Relative luminance 0.083; OKLCH L 46.3% C 0.204 H 311.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7D21A9
RGBrgb(125, 33, 169)
HSLhsl(281, 67%, 40%)
HSVhsv(281, 80%, 66%)
CMYKcmyk(26%, 80.5%, 0%, 33.7%)
CIE-LABlab(34.63, 58.79, -53.87)
CIE-LCHlch(34.63, 79.74, 317.50°)
OKLaboklab(46.31% 0.135 -0.1527)
OKLCHoklch(46.31% 0.204 311.5)
XYZxyz(16.1614, 8.3127, 38.2816)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D21A9 #4DA921
analogous
#3921A9 #7D21A9 #A92191
triadic
#7D21A9 #A97D21 #21A97D
tetradic
#7D21A9 #A93921 #4DA921 #2191A9
square
#7D21A9 #A93921 #4DA921 #2191A9
split-complementary
#7D21A9 #91A921 #21A939
monochromatic
#310D43 #571776 #7D21A9 #A131D7 #B864E1

Accessibility & contrast

On white

7.89
#7D21A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D21A9
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D21A9#FFFFFF#000000##FFFFFF
##7D21A91.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0053A6
Tritanopia (blue-blind)
#774366
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d21a9;
/* rgb */ color: rgb(125, 33, 169);
/* oklch */ color: oklch(46.3% 0.204 311.5);
Tailwind
colors: {
  custom: {
    50: '#a868c3',
    500: '#7d21a9',
    950: '#000000',
  },
}
SCSS
$custom: #7d21a9;
$custom-light: #a868c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d21a9",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 169
  },
  "hsl": {
    "h": 280.588,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46305,
    "c": 0.20384,
    "h": 311.5
  },
  "luminance": 0.08312
}

Semantic roles & 50–950 ramp

primary
#7D21A9
secondary
#81C660
accent
#EA3E75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D21A9

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

Preview Lab → · Contrast checker → · Palette generator →

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