#7A4AAA#7A4AAA

#7A4AAA is a mid, vivid violet. Relative luminance 0.119; OKLCH L 50.9% C 0.151 H 304.7°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#7A4AAA
RGBrgb(122, 74, 170)
HSLhsl(270, 39%, 48%)
HSVhsv(270, 56%, 67%)
CMYKcmyk(28.2%, 56.5%, 0%, 33.3%)
CIE-LABlab(41.12, 39.49, -44.03)
CIE-LCHlch(41.12, 59.15, 311.89°)
OKLaboklab(50.91% 0.0859 -0.1241)
OKLCHoklch(50.91% 0.151 304.7)
XYZxyz(17.7289, 11.9375, 39.3926)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4AAA #7AAA4A
analogous
#4A4AAA #7A4AAA #AA4AAA
triadic
#7A4AAA #AA7A4A #4AAA7A
tetradic
#7A4AAA #AA4A4A #7AAA4A #4AAAAA
square
#7A4AAA #AA4A4A #7AAA4A #4AAAAA
split-complementary
#7A4AAA #AAAA4A #4AAA4A
monochromatic
#3D2555 #5B377F #7A4AAA #9970C1 #B79BD3

Accessibility & contrast

On white

6.20
#7A4AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7A4AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4AAA
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4AAA#FFFFFF#000000##FFFFFF
##7A4AAA1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2660AD
Deuteranopia (green-blind)
#3761A8
Tritanopia (blue-blind)
#725C73
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7a4aaa;
/* rgb */ color: rgb(122, 74, 170);
/* oklch */ color: oklch(50.9% 0.151 304.7);
Tailwind
colors: {
  custom: {
    50: '#a37ec4',
    500: '#7a4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7a4aaa;
$custom-light: #a37ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4aaa",
  "rgb": {
    "r": 122,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 270,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50905,
    "c": 0.15098,
    "h": 304.7
  },
  "luminance": 0.11937
}

Semantic roles & 50–950 ramp

primary
#7A4AAA
secondary
#A8C090
accent
#CF5994
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7A4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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