#7A2FA4#7A2FA4

#7A2FA4 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.183 H 310.5°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7A2FA4
RGBrgb(122, 47, 164)
HSLhsl(278, 55%, 41%)
HSVhsv(278, 71%, 64%)
CMYKcmyk(25.6%, 71.3%, 0%, 35.7%)
CIE-LABlab(35.70, 51.76, -49.16)
CIE-LCHlch(35.70, 71.38, 316.48°)
OKLaboklab(46.86% 0.119 -0.139)
OKLCHoklch(46.86% 0.183 310.5)
XYZxyz(15.7421, 8.8513, 35.9940)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FA4 #59A42F
analogous
#402FA4 #7A2FA4 #A42F94
triadic
#7A2FA4 #A47A2F #2FA47A
tetradic
#7A2FA4 #A4402F #59A42F #2F94A4
square
#7A2FA4 #A4402F #59A42F #2F94A4
split-complementary
#7A2FA4 #94A42F #2FA440
monochromatic
#331445 #572174 #7A2FA4 #9B46CA #B576D8

Accessibility & contrast

On white

7.58
#7A2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7A2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FA4
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FA4#FFFFFF#000000##FFFFFF
##7A2FA41.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#1C55A1
Tritanopia (blue-blind)
#744966
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2fa4;
/* rgb */ color: rgb(122, 47, 164);
/* oklch */ color: oklch(46.9% 0.183 310.5);
Tailwind
colors: {
  custom: {
    50: '#a46ec0',
    500: '#7a2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fa4;
$custom-light: #a46ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fa4",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 278.462,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46855,
    "c": 0.18299,
    "h": 310.5
  },
  "luminance": 0.08851
}

Semantic roles & 50–950 ramp

primary
#7A2FA4
secondary
#8CC06F
accent
#DF497F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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