#7A2EAA#7A2EAA

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

Color values

HEX#7A2EAA
RGBrgb(122, 46, 170)
HSLhsl(277, 57%, 42%)
HSVhsv(277, 73%, 67%)
CMYKcmyk(28.2%, 72.9%, 0%, 33.3%)
CIE-LABlab(35.97, 53.53, -52.31)
CIE-LCHlch(35.97, 74.84, 315.66°)
OKLaboklab(47.19% 0.1191 -0.1483)
OKLCHoklch(47.19% 0.19 308.8)
XYZxyz(16.2573, 8.9941, 38.9020)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EAA #5EAA2E
analogous
#3C2EAA #7A2EAA #AA2E9C
triadic
#7A2EAA #AA7A2E #2EAA7A
tetradic
#7A2EAA #AA3C2E #5EAA2E #2E9CAA
square
#7A2EAA #AA3C2E #5EAA2E #2E9CAA
split-complementary
#7A2EAA #9CAA2E #2EAA3C
monochromatic
#35144A #57217A #7A2EAA #9A48CD #B478DA

Accessibility & contrast

On white

7.50
#7A2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7A2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EAA
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EAA#FFFFFF#000000##FFFFFF
##7A2EAA1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2eaa;
/* rgb */ color: rgb(122, 46, 170);
/* oklch */ color: oklch(47.2% 0.190 308.8);
Tailwind
colors: {
  custom: {
    50: '#a56ec4',
    500: '#7a2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #7a2eaa;
$custom-light: #a56ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2eaa",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 276.774,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47187,
    "c": 0.19022,
    "h": 308.8
  },
  "luminance": 0.08994
}

Semantic roles & 50–950 ramp

primary
#7A2EAA
secondary
#91C371
accent
#E14783
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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