#7A2CA4#7A2CA4

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

Color values

HEX#7A2CA4
RGBrgb(122, 44, 164)
HSLhsl(279, 58%, 41%)
HSVhsv(279, 73%, 64%)
CMYKcmyk(25.6%, 73.2%, 0%, 35.7%)
CIE-LABlab(35.24, 53.04, -49.89)
CIE-LCHlch(35.24, 72.82, 316.75°)
OKLaboklab(46.53% 0.1221 -0.1412)
OKLCHoklch(46.53% 0.187 310.8)
XYZxyz(15.6263, 8.6196, 35.9553)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CA4 #56A42C
analogous
#3E2CA4 #7A2CA4 #A42C92
triadic
#7A2CA4 #A47A2C #2CA47A
tetradic
#7A2CA4 #A43E2C #56A42C #2C92A4
square
#7A2CA4 #A43E2C #56A42C #2C92A4
split-complementary
#7A2CA4 #92A42C #2CA43E
monochromatic
#321243 #561F74 #7A2CA4 #9B41CC #B571D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A2CA4#FFFFFF#000000##FFFFFF
##7A2CA41.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)
#004FA7
Deuteranopia (green-blind)
#1754A1
Tritanopia (blue-blind)
#744765
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2ca4;
/* rgb */ color: rgb(122, 44, 164);
/* oklch */ color: oklch(46.5% 0.187 310.8);
Tailwind
colors: {
  custom: {
    50: '#a56dc0',
    500: '#7a2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ca4;
$custom-light: #a56dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ca4",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 279,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46531,
    "c": 0.18664,
    "h": 310.8
  },
  "luminance": 0.08619
}

Semantic roles & 50–950 ramp

primary
#7A2CA4
secondary
#89C06B
accent
#E1477D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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