#7C2AA5#7C2AA5

#7C2AA5 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.191 H 311.6°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7C2AA5
RGBrgb(124, 42, 165)
HSLhsl(280, 59%, 41%)
HSVhsv(280, 75%, 65%)
CMYKcmyk(24.8%, 74.5%, 0%, 35.3%)
CIE-LABlab(35.32, 54.48, -50.36)
CIE-LCHlch(35.32, 74.19, 317.25°)
OKLaboklab(46.67% 0.1266 -0.1425)
OKLCHoklch(46.67% 0.191 311.6)
XYZxyz(15.9304, 8.6580, 36.4220)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AA5 #53A52A
analogous
#3E2AA5 #7C2AA5 #A52A90
triadic
#7C2AA5 #A57C2A #2AA57C
tetradic
#7C2AA5 #A53E2A #53A52A #2A90A5
square
#7C2AA5 #A53E2A #53A52A #2A90A5
split-complementary
#7C2AA5 #90A52A #2AA53E
monochromatic
#331143 #571E74 #7C2AA5 #9E3ECE #B76FDA

Accessibility & contrast

On white

7.69
#7C2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7C2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2AA5
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AA5#FFFFFF#000000##FFFFFF
##7C2AA51.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#1655A2
Tritanopia (blue-blind)
#774665
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c2aa5;
/* rgb */ color: rgb(124, 42, 165);
/* oklch */ color: oklch(46.7% 0.191 311.6);
Tailwind
colors: {
  custom: {
    50: '#a66cc0',
    500: '#7c2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #7c2aa5;
$custom-light: #a66cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2aa5",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 280,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46668,
    "c": 0.19057,
    "h": 311.6
  },
  "luminance": 0.08658
}

Semantic roles & 50–950 ramp

primary
#7C2AA5
secondary
#87C169
accent
#E3457A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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