#7A2AA6#7A2AA6

#7A2AA6 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.5% C 0.191 H 310.4°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7A2AA6
RGBrgb(122, 42, 166)
HSLhsl(279, 60%, 41%)
HSVhsv(279, 75%, 65%)
CMYKcmyk(26.5%, 74.7%, 0%, 34.9%)
CIE-LABlab(35.10, 54.30, -51.33)
CIE-LCHlch(35.10, 74.72, 316.61°)
OKLaboklab(46.48% 0.1237 -0.1454)
OKLCHoklch(46.48% 0.191 310.4)
XYZxyz(15.7356, 8.5470, 36.8898)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AA6 #56A62A
analogous
#3C2AA6 #7A2AA6 #A62A94
triadic
#7A2AA6 #A67A2A #2AA67A
tetradic
#7A2AA6 #A63C2A #56A62A #2A94A6
square
#7A2AA6 #A63C2A #56A62A #2A94A6
split-complementary
#7A2AA6 #94A62A #2AA63C
monochromatic
#321144 #561E75 #7A2AA6 #9B3FCE #B570DB

Accessibility & contrast

On white

7.75
#7A2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7A2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AA6
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AA6#FFFFFF#000000##FFFFFF
##7A2AA61.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0E54A3
Tritanopia (blue-blind)
#744766
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2aa6;
/* rgb */ color: rgb(122, 42, 166);
/* oklch */ color: oklch(46.5% 0.191 310.4);
Tailwind
colors: {
  custom: {
    50: '#a56cc1',
    500: '#7a2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #7a2aa6;
$custom-light: #a56cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2aa6",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 278.71,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46475,
    "c": 0.19091,
    "h": 310.4
  },
  "luminance": 0.08547
}

Semantic roles & 50–950 ramp

primary
#7A2AA6
secondary
#89C26A
accent
#E3457D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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