#7A2AAE#7A2AAE

#7A2AAE is a mid, vivid violet. Relative luminance 0.088; OKLCH L 47.1% C 0.199 H 308.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7A2AAE
RGBrgb(122, 42, 174)
HSLhsl(276, 61%, 42%)
HSVhsv(276, 76%, 68%)
CMYKcmyk(29.9%, 75.9%, 0%, 31.8%)
CIE-LABlab(35.69, 56.06, -55.15)
CIE-LCHlch(35.69, 78.64, 315.47°)
OKLaboklab(47.08% 0.1222 -0.1566)
OKLCHoklch(47.08% 0.199 308)
XYZxyz(16.4924, 8.8497, 40.8755)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AAE #5EAE2A
analogous
#382AAE #7A2AAE #AE2AA0
triadic
#7A2AAE #AE7A2A #2AAE7A
tetradic
#7A2AAE #AE382A #5EAE2A #2AA0AE
square
#7A2AAE #AE382A #5EAE2A #2AA0AE
split-complementary
#7A2AAE #A0AE2A #2AAE38
monochromatic
#35124B #571E7D #7A2AAE #9A43D2 #B475DE

Accessibility & contrast

On white

7.58
#7A2AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7A2AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AAE
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AAE#FFFFFF#000000##FFFFFF
##7A2AAE1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0055AB
Tritanopia (blue-blind)
#724A6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2aae;
/* rgb */ color: rgb(122, 42, 174);
/* oklch */ color: oklch(47.1% 0.199 308.0);
Tailwind
colors: {
  custom: {
    50: '#a56cc7',
    500: '#7a2aae',
    950: '#000000',
  },
}
SCSS
$custom: #7a2aae;
$custom-light: #a56cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2aae",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 174
  },
  "hsl": {
    "h": 276.364,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47083,
    "c": 0.19868,
    "h": 308
  },
  "luminance": 0.08849
}

Semantic roles & 50–950 ramp

primary
#7A2AAE
secondary
#91C56F
accent
#E44483
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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