#7A2FA9#7A2FA9

#7A2FA9 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.188 H 309.0°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7A2FA9
RGBrgb(122, 47, 169)
HSLhsl(277, 56%, 42%)
HSVhsv(277, 72%, 66%)
CMYKcmyk(27.8%, 72.2%, 0%, 33.7%)
CIE-LABlab(36.05, 52.87, -51.58)
CIE-LCHlch(36.05, 73.87, 315.71°)
OKLaboklab(47.22% 0.1183 -0.1462)
OKLCHoklch(47.22% 0.188 309)
XYZxyz(16.2025, 9.0355, 38.4189)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FA9 #5EA92F
analogous
#3D2FA9 #7A2FA9 #A92F9B
triadic
#7A2FA9 #A97A2F #2FA97A
tetradic
#7A2FA9 #A93D2F #5EA92F #2F9BA9
square
#7A2FA9 #A93D2F #5EA92F #2F9BA9
split-complementary
#7A2FA9 #9BA92F #2FA93D
monochromatic
#351449 #572279 #7A2FA9 #9A49CC #B479DA

Accessibility & contrast

On white

7.48
#7A2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7A2FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FA9
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FA9#FFFFFF#000000##FFFFFF
##7A2FA91.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#1156A6
Tritanopia (blue-blind)
#734B69
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2fa9;
/* rgb */ color: rgb(122, 47, 169);
/* oklch */ color: oklch(47.2% 0.188 309.0);
Tailwind
colors: {
  custom: {
    50: '#a56ec3',
    500: '#7a2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fa9;
$custom-light: #a56ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fa9",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 276.885,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47221,
    "c": 0.18802,
    "h": 309
  },
  "luminance": 0.09035
}

Semantic roles & 50–950 ramp

primary
#7A2FA9
secondary
#91C272
accent
#E04882
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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