#7A4EA2#7A4EA2

#7A4EA2 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.1% C 0.135 H 306.4°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7A4EA2
RGBrgb(122, 78, 162)
HSLhsl(271, 35%, 47%)
HSVhsv(271, 52%, 64%)
CMYKcmyk(24.7%, 51.9%, 0%, 36.5%)
CIE-LABlab(41.52, 35.25, -38.63)
CIE-LCHlch(41.52, 52.29, 312.38°)
OKLaboklab(51.06% 0.0799 -0.1083)
OKLCHoklch(51.06% 0.135 306.4)
XYZxyz(17.2707, 12.1951, 35.6195)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4EA2 #76A24E
analogous
#504EA2 #7A4EA2 #A24EA0
triadic
#7A4EA2 #A27A4E #4EA27A
tetradic
#7A4EA2 #A2504E #76A24E #4EA0A2
square
#7A4EA2 #A2504E #76A24E #4EA0A2
split-complementary
#7A4EA2 #A0A24E #4EA250
monochromatic
#3C264F #5B3A79 #7A4EA2 #9872BB #B69BCF

Accessibility & contrast

On white

6.11
#7A4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7A4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4EA2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4EA2#FFFFFF#000000##FFFFFF
##7A4EA21.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3560A5
Deuteranopia (green-blind)
#4262A0
Tritanopia (blue-blind)
#745D70
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a4ea2;
/* rgb */ color: rgb(122, 78, 162);
/* oklch */ color: oklch(51.1% 0.135 306.4);
Tailwind
colors: {
  custom: {
    50: '#a381be',
    500: '#7a4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7a4ea2;
$custom-light: #a381be;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4ea2",
  "rgb": {
    "r": 122,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 271.429,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51056,
    "c": 0.13463,
    "h": 306.4
  },
  "luminance": 0.12195
}

Semantic roles & 50–950 ramp

primary
#7A4EA2
secondary
#A5BC90
accent
#CB5D91
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7A4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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