#7A2FAC#7A2FAC

#7A2FAC is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.191 H 308.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7A2FAC
RGBrgb(122, 47, 172)
HSLhsl(276, 57%, 43%)
HSVhsv(276, 73%, 67%)
CMYKcmyk(29.1%, 72.7%, 0%, 32.5%)
CIE-LABlab(36.27, 53.55, -53.02)
CIE-LCHlch(36.27, 75.36, 315.28°)
OKLaboklab(47.44% 0.1178 -0.1504)
OKLCHoklch(47.44% 0.191 308.1)
XYZxyz(16.4874, 9.1494, 39.9192)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FAC #61AC2F
analogous
#3B2FAC #7A2FAC #AC2F9F
triadic
#7A2FAC #AC7A2F #2FAC7A
tetradic
#7A2FAC #AC3B2F #61AC2F #2F9FAC
square
#7A2FAC #AC3B2F #61AC2F #2F9FAC
split-complementary
#7A2FAC #9FAC2F #2FAC3B
monochromatic
#36154C #58227C #7A2FAC #994BCE #B47BDB

Accessibility & contrast

On white

7.42
#7A2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7A2FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FAC
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FAC#FFFFFF#000000##FFFFFF
##7A2FAC1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#0656A9
Tritanopia (blue-blind)
#724C6B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2fac;
/* rgb */ color: rgb(122, 47, 172);
/* oklch */ color: oklch(47.4% 0.191 308.1);
Tailwind
colors: {
  custom: {
    50: '#a56ec5',
    500: '#7a2fac',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fac;
$custom-light: #a56ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fac",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 276,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47444,
    "c": 0.19105,
    "h": 308.1
  },
  "luminance": 0.09149
}

Semantic roles & 50–950 ramp

primary
#7A2FAC
secondary
#93C374
accent
#E04785
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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