#7A4ABA#7A4ABA

#7A4ABA is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.0% C 0.170 H 300.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7A4ABA
RGBrgb(122, 74, 186)
HSLhsl(266, 45%, 51%)
HSVhsv(266, 60%, 73%)
CMYKcmyk(34.4%, 60.2%, 0%, 27.1%)
CIE-LABlab(42.12, 43.53, -51.85)
CIE-LCHlch(42.12, 67.70, 310.02°)
OKLaboklab(51.97% 0.0859 -0.1471)
OKLCHoklch(51.97% 0.17 300.3)
XYZxyz(19.3356, 12.5802, 47.8544)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4ABA #8ABA4A
analogous
#4A52BA #7A4ABA #B24ABA
triadic
#7A4ABA #BA7A4A #4ABA7A
tetradic
#7A4ABA #BA4A52 #8ABA4A #4ABAB2
square
#7A4ABA #BA4A52 #8ABA4A #4ABAB2
split-complementary
#7A4ABA #BAB24A #52BA4A
monochromatic
#402664 #5D3790 #7A4ABA #9B76CB #BBA3DC

Accessibility & contrast

On white

5.97
#7A4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7A4ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4ABA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4ABA#FFFFFF#000000##FFFFFF
##7A4ABA1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0463BE
Deuteranopia (green-blind)
#2563B7
Tritanopia (blue-blind)
#6C627B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a4aba;
/* rgb */ color: rgb(122, 74, 186);
/* oklch */ color: oklch(52.0% 0.170 300.3);
Tailwind
colors: {
  custom: {
    50: '#a57fcf',
    500: '#7a4aba',
    950: '#000000',
  },
}
SCSS
$custom: #7a4aba;
$custom-light: #a57fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4aba",
  "rgb": {
    "r": 122,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 265.714,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51965,
    "c": 0.17033,
    "h": 300.3
  },
  "luminance": 0.1258
}

Semantic roles & 50–950 ramp

primary
#7A4ABA
secondary
#B3C997
accent
#D5539D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7A4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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