#7C4AAA#7C4AAA

#7C4AAA is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.1% C 0.152 H 305.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#7C4AAA
RGBrgb(124, 74, 170)
HSLhsl(271, 39%, 48%)
HSVhsv(271, 56%, 67%)
CMYKcmyk(27.1%, 56.5%, 0%, 33.3%)
CIE-LABlab(41.35, 40.01, -43.65)
CIE-LCHlch(41.35, 59.21, 312.51°)
OKLaboklab(51.13% 0.0886 -0.1229)
OKLCHoklch(51.13% 0.152 305.8)
XYZxyz(18.0151, 12.0851, 39.4060)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4AAA #78AA4A
analogous
#4C4AAA #7C4AAA #AA4AA8
triadic
#7C4AAA #AA7C4A #4AAA7C
tetradic
#7C4AAA #AA4C4A #78AA4A #4AA8AA
square
#7C4AAA #AA4C4A #78AA4A #4AA8AA
split-complementary
#7C4AAA #A8AA4A #4AAA4C
monochromatic
#3E2555 #5D377F #7C4AAA #9A70C1 #B89BD3

Accessibility & contrast

On white

6.15
#7C4AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7C4AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4AAA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4AAA#FFFFFF#000000##FFFFFF
##7C4AAA1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2760AD
Deuteranopia (green-blind)
#3962A8
Tritanopia (blue-blind)
#745C73
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7c4aaa;
/* rgb */ color: rgb(124, 74, 170);
/* oklch */ color: oklch(51.1% 0.152 305.8);
Tailwind
colors: {
  custom: {
    50: '#a57ec4',
    500: '#7c4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7c4aaa;
$custom-light: #a57ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4aaa",
  "rgb": {
    "r": 124,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 271.25,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5113,
    "c": 0.15152,
    "h": 305.8
  },
  "luminance": 0.12085
}

Semantic roles & 50–950 ramp

primary
#7C4AAA
secondary
#A7C090
accent
#CF5991
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7C4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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