#7C2AA4#7C2AA4

#7C2AA4 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.190 H 311.9°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7C2AA4
RGBrgb(124, 42, 164)
HSLhsl(280, 59%, 40%)
HSVhsv(280, 74%, 64%)
CMYKcmyk(24.4%, 74.4%, 0%, 35.7%)
CIE-LABlab(35.25, 54.27, -49.87)
CIE-LCHlch(35.25, 73.70, 317.42°)
OKLaboklab(46.6% 0.1267 -0.141)
OKLCHoklch(46.6% 0.19 311.9)
XYZxyz(15.8397, 8.6218, 35.9445)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AA4 #52A42A
analogous
#3F2AA4 #7C2AA4 #A42A8F
triadic
#7C2AA4 #A47C2A #2AA47C
tetradic
#7C2AA4 #A43F2A #52A42A #2A8FA4
square
#7C2AA4 #A43F2A #52A42A #2A8FA4
split-complementary
#7C2AA4 #8FA42A #2AA43F
monochromatic
#321143 #571E73 #7C2AA4 #9E3ECD #B76EDA

Accessibility & contrast

On white

7.71
#7C2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7C2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2AA4
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AA4#FFFFFF#000000##FFFFFF
##7C2AA41.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#1854A1
Tritanopia (blue-blind)
#774665
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c2aa4;
/* rgb */ color: rgb(124, 42, 164);
/* oklch */ color: oklch(46.6% 0.190 311.9);
Tailwind
colors: {
  custom: {
    50: '#a66cc0',
    500: '#7c2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #7c2aa4;
$custom-light: #a66cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2aa4",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 280.328,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46595,
    "c": 0.18961,
    "h": 311.9
  },
  "luminance": 0.08621
}

Semantic roles & 50–950 ramp

primary
#7C2AA4
secondary
#86C169
accent
#E24579
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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