#7A2EA5#7A2EA5

#7A2EA5 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.185 H 310.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7A2EA5
RGBrgb(122, 46, 165)
HSLhsl(278, 56%, 41%)
HSVhsv(278, 72%, 65%)
CMYKcmyk(26.1%, 72.1%, 0%, 35.3%)
CIE-LABlab(35.61, 52.41, -49.89)
CIE-LCHlch(35.61, 72.36, 316.41°)
OKLaboklab(46.82% 0.1199 -0.1412)
OKLCHoklch(46.82% 0.185 310.3)
XYZxyz(15.7932, 8.8085, 36.4583)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EA5 #59A52E
analogous
#3F2EA5 #7A2EA5 #A52E95
triadic
#7A2EA5 #A57A2E #2EA57A
tetradic
#7A2EA5 #A53F2E #59A52E #2E95A5
square
#7A2EA5 #A53F2E #59A52E #2E95A5
split-complementary
#7A2EA5 #95A52E #2EA53F
monochromatic
#331345 #572175 #7A2EA5 #9B45CB #B575D8

Accessibility & contrast

On white

7.60
#7A2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7A2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EA5
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EA5#FFFFFF#000000##FFFFFF
##7A2EA51.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#1855A2
Tritanopia (blue-blind)
#744866
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2ea5;
/* rgb */ color: rgb(122, 46, 165);
/* oklch */ color: oklch(46.8% 0.185 310.3);
Tailwind
colors: {
  custom: {
    50: '#a56ec0',
    500: '#7a2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ea5;
$custom-light: #a56ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ea5",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 278.319,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46818,
    "c": 0.18523,
    "h": 310.3
  },
  "luminance": 0.08808
}

Semantic roles & 50–950 ramp

primary
#7A2EA5
secondary
#8CC06F
accent
#E0487F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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