#7A2EA4#7A2EA4

#7A2EA4 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.7% C 0.184 H 310.6°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7A2EA4
RGBrgb(122, 46, 164)
HSLhsl(279, 56%, 41%)
HSVhsv(279, 72%, 64%)
CMYKcmyk(25.6%, 72%, 0%, 35.7%)
CIE-LABlab(35.54, 52.19, -49.41)
CIE-LCHlch(35.54, 71.87, 316.57°)
OKLaboklab(46.75% 0.12 -0.1398)
OKLCHoklch(46.75% 0.184 310.6)
XYZxyz(15.7026, 8.7723, 35.9808)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EA4 #58A42E
analogous
#3F2EA4 #7A2EA4 #A42E93
triadic
#7A2EA4 #A47A2E #2EA47A
tetradic
#7A2EA4 #A43F2E #58A42E #2E93A4
square
#7A2EA4 #A43F2E #58A42E #2E93A4
split-complementary
#7A2EA4 #93A42E #2EA43F
monochromatic
#331344 #562174 #7A2EA4 #9B45CB #B574D8

Accessibility & contrast

On white

7.62
#7A2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7A2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EA4
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EA4#FFFFFF#000000##FFFFFF
##7A2EA41.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#1A55A1
Tritanopia (blue-blind)
#744866
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2ea4;
/* rgb */ color: rgb(122, 46, 164);
/* oklch */ color: oklch(46.7% 0.184 310.6);
Tailwind
colors: {
  custom: {
    50: '#a56ec0',
    500: '#7a2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ea4;
$custom-light: #a56ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ea4",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 278.644,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46745,
    "c": 0.18423,
    "h": 310.6
  },
  "luminance": 0.08772
}

Semantic roles & 50–950 ramp

primary
#7A2EA4
secondary
#8BC06E
accent
#DF487E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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