#7D21AD#7D21AD

#7D21AD is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.6% C 0.207 H 310.3°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7D21AD
RGBrgb(125, 33, 173)
HSLhsl(279, 68%, 40%)
HSVhsv(279, 81%, 68%)
CMYKcmyk(27.7%, 80.9%, 0%, 32.2%)
CIE-LABlab(34.93, 59.62, -55.77)
CIE-LCHlch(34.93, 81.64, 316.91°)
OKLaboklab(46.62% 0.1341 -0.1583)
OKLCHoklch(46.62% 0.207 310.3)
XYZxyz(16.5426, 8.4652, 40.2896)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D21AD #51AD21
analogous
#3721AD #7D21AD #AD2197
triadic
#7D21AD #AD7D21 #21AD7D
tetradic
#7D21AD #AD3721 #51AD21 #2197AD
square
#7D21AD #AD3721 #51AD21 #2197AD
split-complementary
#7D21AD #97AD21 #21AD37
monochromatic
#330D46 #58177A #7D21AD #A033D8 #B866E2

Accessibility & contrast

On white

7.80
#7D21AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D21AD
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D21AD#FFFFFF#000000##FFFFFF
##7D21AD1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#764568
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d21ad;
/* rgb */ color: rgb(125, 33, 173);
/* oklch */ color: oklch(46.6% 0.207 310.3);
Tailwind
colors: {
  custom: {
    50: '#a869c6',
    500: '#7d21ad',
    950: '#000000',
  },
}
SCSS
$custom: #7d21ad;
$custom-light: #a869c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d21ad",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 173
  },
  "hsl": {
    "h": 279.429,
    "s": 67.961,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46617,
    "c": 0.20744,
    "h": 310.3
  },
  "luminance": 0.08465
}

Semantic roles & 50–950 ramp

primary
#7D21AD
secondary
#85C762
accent
#EB3D79
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D21AD

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

Preview Lab → · Contrast checker → · Palette generator →

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