#7E2AC4#7E2AC4

#7E2AC4 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.3% C 0.221 H 303.7°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#7E2AC4
RGBrgb(126, 42, 196)
HSLhsl(273, 65%, 47%)
HSVhsv(273, 79%, 77%)
CMYKcmyk(35.7%, 78.6%, 0%, 23.1%)
CIE-LABlab(37.98, 61.68, -64.39)
CIE-LCHlch(37.98, 89.17, 313.77°)
OKLaboklab(49.34% 0.1227 -0.1836)
OKLCHoklch(49.34% 0.221 303.7)
XYZxyz(19.3936, 10.0771, 53.1372)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AC4 #70C42A
analogous
#312AC4 #7E2AC4 #C42ABD
triadic
#7E2AC4 #C47E2A #2AC47E
tetradic
#7E2AC4 #C4312A #70C42A #2ABDC4
square
#7E2AC4 #C4312A #70C42A #2ABDC4
split-complementary
#7E2AC4 #BDC42A #2AC431
monochromatic
#3D145F #5E1F92 #7E2AC4 #9C51DA #B984E5

Accessibility & contrast

On white

6.96
#7E2AC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7E2AC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2AC4
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AC4#FFFFFF#000000##FFFFFF
##7E2AC41.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#0059C1
Tritanopia (blue-blind)
#705377
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e2ac4;
/* rgb */ color: rgb(126, 42, 196);
/* oklch */ color: oklch(49.3% 0.221 303.7);
Tailwind
colors: {
  custom: {
    50: '#aa6ed7',
    500: '#7e2ac4',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ac4;
$custom-light: #aa6ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ac4",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 196
  },
  "hsl": {
    "h": 272.727,
    "s": 64.706,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49344,
    "c": 0.22084,
    "h": 303.7
  },
  "luminance": 0.10077
}

Semantic roles & 50–950 ramp

primary
#7E2AC4
secondary
#A1CE7C
accent
#E8408C
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E2AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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