#7A2FA2#7A2FA2

#7A2FA2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.7% C 0.181 H 311.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7A2FA2
RGBrgb(122, 47, 162)
HSLhsl(279, 55%, 41%)
HSVhsv(279, 71%, 64%)
CMYKcmyk(24.7%, 71%, 0%, 36.5%)
CIE-LABlab(35.56, 51.31, -48.18)
CIE-LCHlch(35.56, 70.39, 316.80°)
OKLaboklab(46.71% 0.1192 -0.1362)
OKLCHoklch(46.71% 0.181 311.2)
XYZxyz(15.5629, 8.7796, 35.0502)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FA2 #57A22F
analogous
#402FA2 #7A2FA2 #A22F90
triadic
#7A2FA2 #A27A2F #2FA27A
tetradic
#7A2FA2 #A2402F #57A22F #2F90A2
square
#7A2FA2 #A2402F #57A22F #2F90A2
split-complementary
#7A2FA2 #90A22F #2FA240
monochromatic
#331343 #562173 #7A2FA2 #9B45C9 #B575D7

Accessibility & contrast

On white

7.62
#7A2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2FA2
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FA2#FFFFFF#000000##FFFFFF
##7A2FA21.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#1F559F
Tritanopia (blue-blind)
#754865
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2fa2;
/* rgb */ color: rgb(122, 47, 162);
/* oklch */ color: oklch(46.7% 0.181 311.2);
Tailwind
colors: {
  custom: {
    50: '#a46ebe',
    500: '#7a2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fa2;
$custom-light: #a46ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fa2",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 279.13,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46711,
    "c": 0.18099,
    "h": 311.2
  },
  "luminance": 0.08779
}

Semantic roles & 50–950 ramp

primary
#7A2FA2
secondary
#8ABF6E
accent
#DE497D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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