#7A2FA6#7A2FA6

#7A2FA6 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.185 H 309.9°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7A2FA6
RGBrgb(122, 47, 166)
HSLhsl(278, 56%, 42%)
HSVhsv(278, 72%, 65%)
CMYKcmyk(26.5%, 71.7%, 0%, 34.9%)
CIE-LABlab(35.84, 52.20, -50.13)
CIE-LCHlch(35.84, 72.37, 316.16°)
OKLaboklab(47% 0.1187 -0.1419)
OKLCHoklch(47% 0.185 309.9)
XYZxyz(15.9241, 8.9241, 36.9527)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FA6 #5BA62F
analogous
#3E2FA6 #7A2FA6 #A62F97
triadic
#7A2FA6 #A67A2F #2FA67A
tetradic
#7A2FA6 #A63E2F #5BA62F #2F97A6
square
#7A2FA6 #A63E2F #5BA62F #2F97A6
split-complementary
#7A2FA6 #97A62F #2FA63E
monochromatic
#341447 #572176 #7A2FA6 #9A47CB #B477D8

Accessibility & contrast

On white

7.54
#7A2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2FA6
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FA6#FFFFFF#000000##FFFFFF
##7A2FA61.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1855A3
Tritanopia (blue-blind)
#744967
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2fa6;
/* rgb */ color: rgb(122, 47, 166);
/* oklch */ color: oklch(47.0% 0.185 309.9);
Tailwind
colors: {
  custom: {
    50: '#a56ec1',
    500: '#7a2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fa6;
$custom-light: #a56ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fa6",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 277.815,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47,
    "c": 0.185,
    "h": 309.9
  },
  "luminance": 0.08924
}

Semantic roles & 50–950 ramp

primary
#7A2FA6
secondary
#8EC170
accent
#DF4980
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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