#7A2FA0#7A2FA0

#7A2FA0 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.179 H 311.9°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7A2FA0
RGBrgb(122, 47, 160)
HSLhsl(280, 55%, 41%)
HSVhsv(280, 71%, 63%)
CMYKcmyk(23.7%, 70.6%, 0%, 37.3%)
CIE-LABlab(35.42, 50.87, -47.20)
CIE-LCHlch(35.42, 69.39, 317.15°)
OKLaboklab(46.57% 0.1194 -0.1333)
OKLCHoklch(46.57% 0.179 311.9)
XYZxyz(15.3866, 8.7091, 34.1214)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FA0 #55A02F
analogous
#412FA0 #7A2FA0 #A02F8D
triadic
#7A2FA0 #A07A2F #2FA07A
tetradic
#7A2FA0 #A0412F #55A02F #2F8DA0
square
#7A2FA0 #A0412F #55A02F #2F8DA0
split-complementary
#7A2FA0 #8DA02F #2FA041
monochromatic
#321341 #562171 #7A2FA0 #9C44C8 #B573D6

Accessibility & contrast

On white

7.66
#7A2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7A2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FA0
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FA0#FFFFFF#000000##FFFFFF
##7A2FA01.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#22559D
Tritanopia (blue-blind)
#754764
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2fa0;
/* rgb */ color: rgb(122, 47, 160);
/* oklch */ color: oklch(46.6% 0.179 311.9);
Tailwind
colors: {
  custom: {
    50: '#a46ebd',
    500: '#7a2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fa0;
$custom-light: #a46ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fa0",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 279.823,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46568,
    "c": 0.17898,
    "h": 311.9
  },
  "luminance": 0.08709
}

Semantic roles & 50–950 ramp

primary
#7A2FA0
secondary
#88BE6D
accent
#DE4A7C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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