#7A2AA8#7A2AA8

#7A2AA8 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.193 H 309.8°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7A2AA8
RGBrgb(122, 42, 168)
HSLhsl(278, 60%, 41%)
HSVhsv(278, 75%, 66%)
CMYKcmyk(27.4%, 75%, 0%, 34.1%)
CIE-LABlab(35.24, 54.74, -52.29)
CIE-LCHlch(35.24, 75.70, 316.31°)
OKLaboklab(46.63% 0.1234 -0.1482)
OKLCHoklch(46.63% 0.193 309.8)
XYZxyz(15.9205, 8.6210, 37.8635)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AA8 #58A82A
analogous
#3B2AA8 #7A2AA8 #A82A97
triadic
#7A2AA8 #A87A2A #2AA87A
tetradic
#7A2AA8 #A83B2A #58A82A #2A97A8
square
#7A2AA8 #A83B2A #58A82A #2A97A8
split-complementary
#7A2AA8 #97A82A #2AA83B
monochromatic
#331246 #561E77 #7A2AA8 #9B40CF #B571DB

Accessibility & contrast

On white

7.71
#7A2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7A2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AA8
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AA8#FFFFFF#000000##FFFFFF
##7A2AA81.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#0754A5
Tritanopia (blue-blind)
#734867
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2aa8;
/* rgb */ color: rgb(122, 42, 168);
/* oklch */ color: oklch(46.6% 0.193 309.8);
Tailwind
colors: {
  custom: {
    50: '#a56cc3',
    500: '#7a2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #7a2aa8;
$custom-light: #a56cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2aa8",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 278.095,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46625,
    "c": 0.19285,
    "h": 309.8
  },
  "luminance": 0.08621
}

Semantic roles & 50–950 ramp

primary
#7A2AA8
secondary
#8BC36B
accent
#E3457F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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