#7A2AA9#7A2AA9

#7A2AA9 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.194 H 309.5°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7A2AA9
RGBrgb(122, 42, 169)
HSLhsl(278, 60%, 41%)
HSVhsv(278, 75%, 66%)
CMYKcmyk(27.8%, 75.1%, 0%, 33.7%)
CIE-LABlab(35.32, 54.96, -52.77)
CIE-LCHlch(35.32, 76.19, 316.16°)
OKLaboklab(46.7% 0.1232 -0.1496)
OKLCHoklch(46.7% 0.194 309.5)
XYZxyz(16.0140, 8.6584, 38.3561)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AA9 #59A92A
analogous
#3A2AA9 #7A2AA9 #A92A99
triadic
#7A2AA9 #A97A2A #2AA97A
tetradic
#7A2AA9 #A93A2A #59A92A #2A99A9
square
#7A2AA9 #A93A2A #59A92A #2A99A9
split-complementary
#7A2AA9 #99A92A #2AA93A
monochromatic
#331247 #571E78 #7A2AA9 #9B41D0 #B572DC

Accessibility & contrast

On white

7.69
#7A2AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7A2AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AA9
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AA9#FFFFFF#000000##FFFFFF
##7A2AA91.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#0354A6
Tritanopia (blue-blind)
#734868
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2aa9;
/* rgb */ color: rgb(122, 42, 169);
/* oklch */ color: oklch(46.7% 0.194 309.5);
Tailwind
colors: {
  custom: {
    50: '#a56cc3',
    500: '#7a2aa9',
    950: '#000000',
  },
}
SCSS
$custom: #7a2aa9;
$custom-light: #a56cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2aa9",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 277.795,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46701,
    "c": 0.19382,
    "h": 309.5
  },
  "luminance": 0.08658
}

Semantic roles & 50–950 ramp

primary
#7A2AA9
secondary
#8CC36C
accent
#E3447F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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