#7A2EAC#7A2EAC

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

Color values

HEX#7A2EAC
RGBrgb(122, 46, 172)
HSLhsl(276, 58%, 43%)
HSVhsv(276, 73%, 67%)
CMYKcmyk(29.1%, 73.3%, 0%, 32.5%)
CIE-LABlab(36.12, 53.98, -53.27)
CIE-LCHlch(36.12, 75.83, 315.38°)
OKLaboklab(47.34% 0.1188 -0.1511)
OKLCHoklch(47.34% 0.192 308.2)
XYZxyz(16.4479, 9.0704, 39.9060)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EAC #60AC2E
analogous
#3B2EAC #7A2EAC #AC2E9F
triadic
#7A2EAC #AC7A2E #2EAC7A
tetradic
#7A2EAC #AC3B2E #60AC2E #2E9FAC
square
#7A2EAC #AC3B2E #60AC2E #2E9FAC
split-complementary
#7A2EAC #9FAC2E #2EAC3B
monochromatic
#36144B #58217C #7A2EAC #9949CE #B479DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A2EAC#FFFFFF#000000##FFFFFF
##7A2EAC1.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)
#0052B0
Deuteranopia (green-blind)
#0356A9
Tritanopia (blue-blind)
#724B6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2eac;
/* rgb */ color: rgb(122, 46, 172);
/* oklch */ color: oklch(47.3% 0.192 308.2);
Tailwind
colors: {
  custom: {
    50: '#a56ec5',
    500: '#7a2eac',
    950: '#000000',
  },
}
SCSS
$custom: #7a2eac;
$custom-light: #a56ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2eac",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 276.19,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47337,
    "c": 0.19222,
    "h": 308.2
  },
  "luminance": 0.0907
}

Semantic roles & 50–950 ramp

primary
#7A2EAC
secondary
#93C372
accent
#E14784
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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