#7A1AB4#7A1AB4

#7A1AB4 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.3% C 0.218 H 307.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7A1AB4
RGBrgb(122, 26, 180)
HSLhsl(277, 75%, 40%)
HSVhsv(277, 86%, 71%)
CMYKcmyk(32.2%, 85.6%, 0%, 29.4%)
CIE-LABlab(34.34, 62.69, -60.93)
CIE-LCHlch(34.34, 87.42, 315.82°)
OKLaboklab(46.29% 0.1328 -0.1735)
OKLCHoklch(46.29% 0.218 307.4)
XYZxyz(16.6319, 8.1719, 43.8723)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1AB4 #54B41A
analogous
#2D1AB4 #7A1AB4 #B41AA1
triadic
#7A1AB4 #B47A1A #1AB47A
tetradic
#7A1AB4 #B42D1A #54B41A #1AA1B4
square
#7A1AB4 #B42D1A #54B41A #1AA1B4
split-complementary
#7A1AB4 #A1B41A #1AB42D
monochromatic
#320B49 #56127F #7A1AB4 #9C2BE0 #B560E8

Accessibility & contrast

On white

7.97
#7A1AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7A1AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1AB4
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1AB4#FFFFFF#000000##FFFFFF
##7A1AB41.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#70466B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a1ab4;
/* rgb */ color: rgb(122, 26, 180);
/* oklch */ color: oklch(46.3% 0.218 307.4);
Tailwind
colors: {
  custom: {
    50: '#a766cb',
    500: '#7a1ab4',
    950: '#000000',
  },
}
SCSS
$custom: #7a1ab4;
$custom-light: #a766cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1ab4",
  "rgb": {
    "r": 122,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 277.403,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46286,
    "c": 0.21848,
    "h": 307.4
  },
  "luminance": 0.08172
}

Semantic roles & 50–950 ramp

primary
#7A1AB4
secondary
#87CC5D
accent
#F1367D
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A1AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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