#7E2AA9#7E2AA9

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

Color values

HEX#7E2AA9
RGBrgb(126, 42, 169)
HSLhsl(280, 60%, 41%)
HSVhsv(280, 75%, 66%)
CMYKcmyk(25.4%, 75.1%, 0%, 33.7%)
CIE-LABlab(35.90, 55.73, -51.80)
CIE-LCHlch(35.90, 76.09, 317.10°)
OKLaboklab(47.23% 0.1286 -0.1466)
OKLCHoklch(47.23% 0.195 311.2)
XYZxyz(16.5922, 8.9565, 38.3832)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AA9 #55A92A
analogous
#3F2AA9 #7E2AA9 #A92A95
triadic
#7E2AA9 #A97E2A #2AA97E
tetradic
#7E2AA9 #A93F2A #55A92A #2A95A9
square
#7E2AA9 #A93F2A #55A92A #2A95A9
split-complementary
#7E2AA9 #95A92A #2AA93F
monochromatic
#351247 #591E78 #7E2AA9 #9F41D0 #B872DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2AA9#FFFFFF#000000##FFFFFF
##7E2AA91.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)
#1256A6
Tritanopia (blue-blind)
#784768
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2aa9;
/* rgb */ color: rgb(126, 42, 169);
/* oklch */ color: oklch(47.2% 0.195 311.2);
Tailwind
colors: {
  custom: {
    50: '#a86cc3',
    500: '#7e2aa9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2aa9;
$custom-light: #a86cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2aa9",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 279.685,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47233,
    "c": 0.19502,
    "h": 311.2
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#7E2AA9
secondary
#89C36C
accent
#E3447A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E2AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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