#7A2AA4#7A2AA4

#7A2AA4 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.189 H 311.0°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7A2AA4
RGBrgb(122, 42, 164)
HSLhsl(279, 59%, 40%)
HSVhsv(279, 74%, 64%)
CMYKcmyk(25.6%, 74.4%, 0%, 35.7%)
CIE-LABlab(34.95, 53.87, -50.36)
CIE-LCHlch(34.95, 73.74, 316.93°)
OKLaboklab(46.33% 0.1241 -0.1425)
OKLCHoklch(46.33% 0.189 311)
XYZxyz(15.5536, 8.4742, 35.9311)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AA4 #54A42A
analogous
#3D2AA4 #7A2AA4 #A42A91
triadic
#7A2AA4 #A47A2A #2AA47A
tetradic
#7A2AA4 #A43D2A #54A42A #2A91A4
square
#7A2AA4 #A43D2A #54A42A #2A91A4
split-complementary
#7A2AA4 #91A42A #2AA43D
monochromatic
#321143 #561E73 #7A2AA4 #9C3ECD #B56EDA

Accessibility & contrast

On white

7.79
#7A2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7A2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AA4
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AA4#FFFFFF#000000##FFFFFF
##7A2AA41.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#1454A1
Tritanopia (blue-blind)
#744665
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2aa4;
/* rgb */ color: rgb(122, 42, 164);
/* oklch */ color: oklch(46.3% 0.189 311.0);
Tailwind
colors: {
  custom: {
    50: '#a56cc0',
    500: '#7a2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #7a2aa4;
$custom-light: #a56cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2aa4",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 279.344,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46326,
    "c": 0.18897,
    "h": 311
  },
  "luminance": 0.08474
}

Semantic roles & 50–950 ramp

primary
#7A2AA4
secondary
#87C169
accent
#E2457B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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