#7A2FA1#7A2FA1

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

Color values

HEX#7A2FA1
RGBrgb(122, 47, 161)
HSLhsl(279, 55%, 41%)
HSVhsv(279, 71%, 63%)
CMYKcmyk(24.2%, 70.8%, 0%, 36.9%)
CIE-LABlab(35.49, 51.09, -47.69)
CIE-LCHlch(35.49, 69.89, 316.97°)
OKLaboklab(46.64% 0.1193 -0.1347)
OKLCHoklch(46.64% 0.18 311.5)
XYZxyz(15.4744, 8.7442, 34.5839)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FA1 #56A12F
analogous
#412FA1 #7A2FA1 #A12F8F
triadic
#7A2FA1 #A17A2F #2FA17A
tetradic
#7A2FA1 #A1412F #56A12F #2F8FA1
square
#7A2FA1 #A1412F #56A12F #2F8FA1
split-complementary
#7A2FA1 #8FA12F #2FA141
monochromatic
#321342 #562172 #7A2FA1 #9B45C9 #B574D6

Accessibility & contrast

On white

7.64
#7A2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7A2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FA1
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FA1#FFFFFF#000000##FFFFFF
##7A2FA11.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#20559E
Tritanopia (blue-blind)
#754765
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2fa1;
/* rgb */ color: rgb(122, 47, 161);
/* oklch */ color: oklch(46.6% 0.180 311.5);
Tailwind
colors: {
  custom: {
    50: '#a46ebd',
    500: '#7a2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fa1;
$custom-light: #a46ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fa1",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 279.474,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46639,
    "c": 0.17998,
    "h": 311.5
  },
  "luminance": 0.08744
}

Semantic roles & 50–950 ramp

primary
#7A2FA1
secondary
#89BE6E
accent
#DE4A7C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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