#7A2EA7#7A2EA7

#7A2EA7 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.187 H 309.7°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7A2EA7
RGBrgb(122, 46, 167)
HSLhsl(278, 57%, 42%)
HSVhsv(278, 72%, 65%)
CMYKcmyk(26.9%, 72.5%, 0%, 34.5%)
CIE-LABlab(35.76, 52.86, -50.86)
CIE-LCHlch(35.76, 73.35, 316.10°)
OKLaboklab(46.97% 0.1196 -0.1441)
OKLCHoklch(46.97% 0.187 309.7)
XYZxyz(15.9767, 8.8819, 37.4245)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EA7 #5BA72E
analogous
#3E2EA7 #7A2EA7 #A72E98
triadic
#7A2EA7 #A77A2E #2EA77A
tetradic
#7A2EA7 #A73E2E #5BA72E #2E98A7
square
#7A2EA7 #A73E2E #5BA72E #2E98A7
split-complementary
#7A2EA7 #98A72E #2EA73E
monochromatic
#341447 #572177 #7A2EA7 #9A46CC #B476D9

Accessibility & contrast

On white

7.56
#7A2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7A2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EA7
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EA7#FFFFFF#000000##FFFFFF
##7A2EA71.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1455A4
Tritanopia (blue-blind)
#744968
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2ea7;
/* rgb */ color: rgb(122, 46, 167);
/* oklch */ color: oklch(47.0% 0.187 309.7);
Tailwind
colors: {
  custom: {
    50: '#a56ec2',
    500: '#7a2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ea7;
$custom-light: #a56ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ea7",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 277.686,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46965,
    "c": 0.18722,
    "h": 309.7
  },
  "luminance": 0.08882
}

Semantic roles & 50–950 ramp

primary
#7A2EA7
secondary
#8EC170
accent
#E04880
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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