#7A2EA9#7A2EA9

#7A2EA9 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.1% C 0.189 H 309.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7A2EA9
RGBrgb(122, 46, 169)
HSLhsl(277, 57%, 42%)
HSVhsv(277, 73%, 66%)
CMYKcmyk(27.8%, 72.8%, 0%, 33.7%)
CIE-LABlab(35.90, 53.30, -51.83)
CIE-LCHlch(35.90, 74.35, 315.80°)
OKLaboklab(47.11% 0.1193 -0.1469)
OKLCHoklch(47.11% 0.189 309.1)
XYZxyz(16.1630, 8.9564, 38.4057)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EA9 #5DA92E
analogous
#3D2EA9 #7A2EA9 #A92E9B
triadic
#7A2EA9 #A97A2E #2EA97A
tetradic
#7A2EA9 #A93D2E #5DA92E #2E9BA9
square
#7A2EA9 #A93D2E #5DA92E #2E9BA9
split-complementary
#7A2EA9 #9BA92E #2EA93D
monochromatic
#351449 #572179 #7A2EA9 #9A47CD #B477DA

Accessibility & contrast

On white

7.52
#7A2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7A2EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EA9
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EA9#FFFFFF#000000##FFFFFF
##7A2EA91.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0E55A6
Tritanopia (blue-blind)
#734A69
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2ea9;
/* rgb */ color: rgb(122, 46, 169);
/* oklch */ color: oklch(47.1% 0.189 309.1);
Tailwind
colors: {
  custom: {
    50: '#a56ec3',
    500: '#7a2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ea9;
$custom-light: #a56ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ea9",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 277.073,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47113,
    "c": 0.18922,
    "h": 309.1
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#7A2EA9
secondary
#90C271
accent
#E04782
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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