#7A4FA2#7A4FA2

#7A4FA2 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.2% C 0.133 H 306.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7A4FA2
RGBrgb(122, 79, 162)
HSLhsl(271, 34%, 47%)
HSVhsv(271, 51%, 64%)
CMYKcmyk(24.7%, 51.2%, 0%, 36.5%)
CIE-LABlab(41.75, 34.67, -38.27)
CIE-LCHlch(41.75, 51.64, 312.18°)
OKLaboklab(51.22% 0.0785 -0.1073)
OKLCHoklch(51.22% 0.133 306.2)
XYZxyz(17.3423, 12.3383, 35.6433)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4FA2 #77A24F
analogous
#504FA2 #7A4FA2 #A24FA1
triadic
#7A4FA2 #A27A4F #4FA27A
tetradic
#7A4FA2 #A2504F #77A24F #4FA1A2
square
#7A4FA2 #A2504F #77A24F #4FA1A2
split-complementary
#7A4FA2 #A1A24F #4FA250
monochromatic
#3C2750 #5B3B79 #7A4FA2 #9873BB #B79CCF

Accessibility & contrast

On white

6.06
#7A4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7A4FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4FA2
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4FA2#FFFFFF#000000##FFFFFF
##7A4FA21.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#4363A0
Tritanopia (blue-blind)
#745E71
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a4fa2;
/* rgb */ color: rgb(122, 79, 162);
/* oklch */ color: oklch(51.2% 0.133 306.2);
Tailwind
colors: {
  custom: {
    50: '#a381be',
    500: '#7a4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7a4fa2;
$custom-light: #a381be;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4fa2",
  "rgb": {
    "r": 122,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 271.084,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51222,
    "c": 0.13296,
    "h": 306.2
  },
  "luminance": 0.12338
}

Semantic roles & 50–950 ramp

primary
#7A4FA2
secondary
#A6BC91
accent
#CB5D92
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7A4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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