#7A2FA5#7A2FA5

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

Color values

HEX#7A2FA5
RGBrgb(122, 47, 165)
HSLhsl(278, 56%, 42%)
HSVhsv(278, 72%, 65%)
CMYKcmyk(26.1%, 71.5%, 0%, 35.3%)
CIE-LABlab(35.77, 51.98, -49.64)
CIE-LCHlch(35.77, 71.88, 316.32°)
OKLaboklab(46.93% 0.1188 -0.1405)
OKLCHoklch(46.93% 0.184 310.2)
XYZxyz(15.8328, 8.8876, 36.4714)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FA5 #5AA52F
analogous
#3F2FA5 #7A2FA5 #A52F95
triadic
#7A2FA5 #A57A2F #2FA57A
tetradic
#7A2FA5 #A53F2F #5AA52F #2F95A5
square
#7A2FA5 #A53F2F #5AA52F #2F95A5
split-complementary
#7A2FA5 #95A52F #2FA53F
monochromatic
#341446 #572175 #7A2FA5 #9A47CB #B476D8

Accessibility & contrast

On white

7.56
#7A2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7A2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FA5
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FA5#FFFFFF#000000##FFFFFF
##7A2FA51.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#1A55A2
Tritanopia (blue-blind)
#744967
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2fa5;
/* rgb */ color: rgb(122, 47, 165);
/* oklch */ color: oklch(46.9% 0.184 310.2);
Tailwind
colors: {
  custom: {
    50: '#a56ec0',
    500: '#7a2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fa5;
$custom-light: #a56ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fa5",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 278.136,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46927,
    "c": 0.184,
    "h": 310.2
  },
  "luminance": 0.08887
}

Semantic roles & 50–950 ramp

primary
#7A2FA5
secondary
#8DC070
accent
#DF4980
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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