#7A2FAA#7A2FAA

#7A2FAA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.3% C 0.189 H 308.7°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7A2FAA
RGBrgb(122, 47, 170)
HSLhsl(277, 57%, 43%)
HSVhsv(277, 72%, 67%)
CMYKcmyk(28.2%, 72.4%, 0%, 33.3%)
CIE-LABlab(36.12, 53.10, -52.06)
CIE-LCHlch(36.12, 74.36, 315.56°)
OKLaboklab(47.3% 0.1181 -0.1476)
OKLCHoklch(47.3% 0.189 308.7)
XYZxyz(16.2968, 9.0732, 38.9152)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FAA #5FAA2F
analogous
#3C2FAA #7A2FAA #AA2F9D
triadic
#7A2FAA #AA7A2F #2FAA7A
tetradic
#7A2FAA #AA3C2F #5FAA2F #2F9DAA
square
#7A2FAA #AA3C2F #5FAA2F #2F9DAA
split-complementary
#7A2FAA #9DAA2F #2FAA3C
monochromatic
#35144A #58227A #7A2FAA #9A49CD #B479DA

Accessibility & contrast

On white

7.46
#7A2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2FAA
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FAA#FFFFFF#000000##FFFFFF
##7A2FAA1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0E56A7
Tritanopia (blue-blind)
#734B6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2faa;
/* rgb */ color: rgb(122, 47, 170);
/* oklch */ color: oklch(47.3% 0.189 308.7);
Tailwind
colors: {
  custom: {
    50: '#a56ec4',
    500: '#7a2faa',
    950: '#000000',
  },
}
SCSS
$custom: #7a2faa;
$custom-light: #a56ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2faa",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 276.585,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47295,
    "c": 0.18903,
    "h": 308.7
  },
  "luminance": 0.09073
}

Semantic roles & 50–950 ramp

primary
#7A2FAA
secondary
#92C272
accent
#E04883
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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