#7A2FA3#7A2FA3

#7A2FA3 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.182 H 310.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7A2FA3
RGBrgb(122, 47, 163)
HSLhsl(279, 55%, 41%)
HSVhsv(279, 71%, 64%)
CMYKcmyk(25.2%, 71.2%, 0%, 36.1%)
CIE-LABlab(35.63, 51.54, -48.67)
CIE-LCHlch(35.63, 70.88, 316.64°)
OKLaboklab(46.78% 0.1191 -0.1376)
OKLCHoklch(46.78% 0.182 310.9)
XYZxyz(15.6522, 8.8153, 35.5202)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FA3 #58A32F
analogous
#402FA3 #7A2FA3 #A32F92
triadic
#7A2FA3 #A37A2F #2FA37A
tetradic
#7A2FA3 #A3402F #58A32F #2F92A3
square
#7A2FA3 #A3402F #58A32F #2F92A3
split-complementary
#7A2FA3 #92A32F #2FA340
monochromatic
#331444 #562173 #7A2FA3 #9B46CA #B575D7

Accessibility & contrast

On white

7.60
#7A2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7A2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FA3
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FA3#FFFFFF#000000##FFFFFF
##7A2FA31.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#1D55A0
Tritanopia (blue-blind)
#754866
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2fa3;
/* rgb */ color: rgb(122, 47, 163);
/* oklch */ color: oklch(46.8% 0.182 310.9);
Tailwind
colors: {
  custom: {
    50: '#a46ebf',
    500: '#7a2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fa3;
$custom-light: #a46ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fa3",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 278.793,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46783,
    "c": 0.18199,
    "h": 310.9
  },
  "luminance": 0.08815
}

Semantic roles & 50–950 ramp

primary
#7A2FA3
secondary
#8BBF6F
accent
#DF497E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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