#7A2AAC#7A2AAC

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

Color values

HEX#7A2AAC
RGBrgb(122, 42, 172)
HSLhsl(277, 61%, 42%)
HSVhsv(277, 76%, 67%)
CMYKcmyk(29.1%, 75.6%, 0%, 32.5%)
CIE-LABlab(35.54, 55.62, -54.20)
CIE-LCHlch(35.54, 77.66, 315.74°)
OKLaboklab(46.93% 0.1226 -0.1538)
OKLCHoklch(46.93% 0.197 308.6)
XYZxyz(16.2989, 8.7723, 39.8563)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AAC #5CAC2A
analogous
#392AAC #7A2AAC #AC2A9D
triadic
#7A2AAC #AC7A2A #2AAC7A
tetradic
#7A2AAC #AC392A #5CAC2A #2A9DAC
square
#7A2AAC #AC392A #5CAC2A #2A9DAC
split-complementary
#7A2AAC #9DAC2A #2AAC39
monochromatic
#34124A #571E7B #7A2AAC #9A42D1 #B473DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A2AAC#FFFFFF#000000##FFFFFF
##7A2AAC1.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)
#0051B0
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#724969
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2aac;
/* rgb */ color: rgb(122, 42, 172);
/* oklch */ color: oklch(46.9% 0.197 308.6);
Tailwind
colors: {
  custom: {
    50: '#a56cc6',
    500: '#7a2aac',
    950: '#000000',
  },
}
SCSS
$custom: #7a2aac;
$custom-light: #a56cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2aac",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 276.923,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46929,
    "c": 0.19673,
    "h": 308.6
  },
  "luminance": 0.08772
}

Semantic roles & 50–950 ramp

primary
#7A2AAC
secondary
#8FC46D
accent
#E44481
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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