#7D21AC#7D21AC

#7D21AC is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.5% C 0.207 H 310.6°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7D21AC
RGBrgb(125, 33, 172)
HSLhsl(280, 68%, 40%)
HSVhsv(280, 81%, 67%)
CMYKcmyk(27.3%, 80.8%, 0%, 32.5%)
CIE-LABlab(34.86, 59.41, -55.30)
CIE-LCHlch(34.86, 81.16, 317.06°)
OKLaboklab(46.54% 0.1343 -0.1569)
OKLCHoklch(46.54% 0.207 310.6)
XYZxyz(16.4462, 8.4266, 39.7819)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D21AC #50AC21
analogous
#3721AC #7D21AC #AC2196
triadic
#7D21AC #AC7D21 #21AC7D
tetradic
#7D21AC #AC3721 #50AC21 #2196AC
square
#7D21AC #AC3721 #50AC21 #2196AC
split-complementary
#7D21AC #96AC21 #21AC37
monochromatic
#320D45 #581779 #7D21AC #A032D8 #B866E2

Accessibility & contrast

On white

7.82
#7D21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7D21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D21AC
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D21AC#FFFFFF#000000##FFFFFF
##7D21AC1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#764567
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d21ac;
/* rgb */ color: rgb(125, 33, 172);
/* oklch */ color: oklch(46.5% 0.207 310.6);
Tailwind
colors: {
  custom: {
    50: '#a868c6',
    500: '#7d21ac',
    950: '#000000',
  },
}
SCSS
$custom: #7d21ac;
$custom-light: #a868c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d21ac",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 279.712,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46539,
    "c": 0.20653,
    "h": 310.6
  },
  "luminance": 0.08426
}

Semantic roles & 50–950 ramp

primary
#7D21AC
secondary
#84C762
accent
#EB3D78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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