#7A2AA5#7A2AA5

#7A2AA5 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.190 H 310.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7A2AA5
RGBrgb(122, 42, 165)
HSLhsl(279, 59%, 41%)
HSVhsv(279, 75%, 65%)
CMYKcmyk(26.1%, 74.5%, 0%, 35.3%)
CIE-LABlab(35.02, 54.08, -50.84)
CIE-LCHlch(35.02, 74.23, 316.77°)
OKLaboklab(46.4% 0.1239 -0.144)
OKLCHoklch(46.4% 0.19 310.7)
XYZxyz(15.6442, 8.5105, 36.4086)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AA5 #55A52A
analogous
#3C2AA5 #7A2AA5 #A52A92
triadic
#7A2AA5 #A57A2A #2AA57A
tetradic
#7A2AA5 #A53C2A #55A52A #2A92A5
square
#7A2AA5 #A53C2A #55A52A #2A92A5
split-complementary
#7A2AA5 #92A52A #2AA53C
monochromatic
#321143 #561E74 #7A2AA5 #9C3ECE #B56FDA

Accessibility & contrast

On white

7.77
#7A2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7A2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AA5
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AA5#FFFFFF#000000##FFFFFF
##7A2AA51.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#1154A2
Tritanopia (blue-blind)
#744665
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2aa5;
/* rgb */ color: rgb(122, 42, 165);
/* oklch */ color: oklch(46.4% 0.190 310.7);
Tailwind
colors: {
  custom: {
    50: '#a56cc0',
    500: '#7a2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #7a2aa5;
$custom-light: #a56cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2aa5",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 279.024,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.464,
    "c": 0.18994,
    "h": 310.7
  },
  "luminance": 0.0851
}

Semantic roles & 50–950 ramp

primary
#7A2AA5
secondary
#88C169
accent
#E3457C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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