#7C21AA#7C21AA

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

Color values

HEX#7C21AA
RGBrgb(124, 33, 170)
HSLhsl(280, 67%, 40%)
HSVhsv(280, 81%, 67%)
CMYKcmyk(27.1%, 80.6%, 0%, 33.3%)
CIE-LABlab(34.55, 58.82, -54.60)
CIE-LCHlch(34.55, 80.26, 317.13°)
OKLaboklab(46.25% 0.1334 -0.1549)
OKLCHoklch(46.25% 0.204 310.7)
XYZxyz(16.1103, 8.2755, 38.7711)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C21AA #4FAA21
analogous
#3721AA #7C21AA #AA2194
triadic
#7C21AA #AA7C21 #21AA7C
tetradic
#7C21AA #AA3721 #4FAA21 #2194AA
square
#7C21AA #AA3721 #4FAA21 #2194AA
split-complementary
#7C21AA #94AA21 #21AA37
monochromatic
#310D43 #571777 #7C21AA #9F31D7 #B764E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C21AA#FFFFFF#000000##FFFFFF
##7C21AA1.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)
#004DAE
Deuteranopia (green-blind)
#0053A7
Tritanopia (blue-blind)
#764466
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c21aa;
/* rgb */ color: rgb(124, 33, 170);
/* oklch */ color: oklch(46.2% 0.204 310.7);
Tailwind
colors: {
  custom: {
    50: '#a768c4',
    500: '#7c21aa',
    950: '#000000',
  },
}
SCSS
$custom: #7c21aa;
$custom-light: #a768c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c21aa",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 279.854,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46245,
    "c": 0.20444,
    "h": 310.7
  },
  "luminance": 0.08275
}

Semantic roles & 50–950 ramp

primary
#7C21AA
secondary
#83C661
accent
#EA3D77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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