#7C21AE#7C21AE

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

Color values

HEX#7C21AE
RGBrgb(124, 33, 174)
HSLhsl(279, 68%, 41%)
HSVhsv(279, 81%, 68%)
CMYKcmyk(28.7%, 81%, 0%, 31.8%)
CIE-LABlab(34.86, 59.66, -56.49)
CIE-LCHlch(34.86, 82.16, 316.57°)
OKLaboklab(46.56% 0.1325 -0.1604)
OKLCHoklch(46.56% 0.208 309.5)
XYZxyz(16.4945, 8.4291, 40.7943)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C21AE #53AE21
analogous
#3521AE #7C21AE #AE219A
triadic
#7C21AE #AE7C21 #21AE7C
tetradic
#7C21AE #AE3521 #53AE21 #219AAE
square
#7C21AE #AE3521 #53AE21 #219AAE
split-complementary
#7C21AE #9AAE21 #21AE35
monochromatic
#330D47 #57177B #7C21AE #9E34D8 #B767E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C21AE#FFFFFF#000000##FFFFFF
##7C21AE1.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)
#004EB2
Deuteranopia (green-blind)
#0053AB
Tritanopia (blue-blind)
#744669
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c21ae;
/* rgb */ color: rgb(124, 33, 174);
/* oklch */ color: oklch(46.6% 0.208 309.5);
Tailwind
colors: {
  custom: {
    50: '#a768c7',
    500: '#7c21ae',
    950: '#000000',
  },
}
SCSS
$custom: #7c21ae;
$custom-light: #a768c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c21ae",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 278.723,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4656,
    "c": 0.20807,
    "h": 309.5
  },
  "luminance": 0.08429
}

Semantic roles & 50–950 ramp

primary
#7C21AE
secondary
#87C863
accent
#EB3D7B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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