#7C2AA6#7C2AA6

#7C2AA6 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.192 H 311.3°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7C2AA6
RGBrgb(124, 42, 166)
HSLhsl(280, 60%, 41%)
HSVhsv(280, 75%, 65%)
CMYKcmyk(25.3%, 74.7%, 0%, 34.9%)
CIE-LABlab(35.39, 54.70, -50.84)
CIE-LCHlch(35.39, 74.68, 317.09°)
OKLaboklab(46.74% 0.1264 -0.1439)
OKLCHoklch(46.74% 0.192 311.3)
XYZxyz(16.0218, 8.6946, 36.9032)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AA6 #54A62A
analogous
#3E2AA6 #7C2AA6 #A62A92
triadic
#7C2AA6 #A67C2A #2AA67C
tetradic
#7C2AA6 #A63E2A #54A62A #2A92A6
square
#7C2AA6 #A63E2A #54A62A #2A92A6
split-complementary
#7C2AA6 #92A62A #2AA63E
monochromatic
#331144 #581E75 #7C2AA6 #9E3FCE #B670DB

Accessibility & contrast

On white

7.67
#7C2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7C2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2AA6
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AA6#FFFFFF#000000##FFFFFF
##7C2AA61.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#1455A3
Tritanopia (blue-blind)
#774666
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c2aa6;
/* rgb */ color: rgb(124, 42, 166);
/* oklch */ color: oklch(46.7% 0.192 311.3);
Tailwind
colors: {
  custom: {
    50: '#a66cc1',
    500: '#7c2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #7c2aa6;
$custom-light: #a66cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2aa6",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 279.677,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46742,
    "c": 0.19153,
    "h": 311.3
  },
  "luminance": 0.08694
}

Semantic roles & 50–950 ramp

primary
#7C2AA6
secondary
#88C26A
accent
#E3457A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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