#7E2AC8#7E2AC8

#7E2AC8 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.7% C 0.225 H 302.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7E2AC8
RGBrgb(126, 42, 200)
HSLhsl(272, 65%, 47%)
HSVhsv(272, 79%, 78%)
CMYKcmyk(37%, 79%, 0%, 21.6%)
CIE-LABlab(38.31, 62.59, -66.19)
CIE-LCHlch(38.31, 91.10, 313.40°)
OKLaboklab(49.67% 0.1216 -0.1889)
OKLCHoklch(49.67% 0.225 302.8)
XYZxyz(19.8550, 10.2616, 55.5671)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AC8 #74C82A
analogous
#2F2AC8 #7E2AC8 #C82AC3
triadic
#7E2AC8 #C87E2A #2AC87E
tetradic
#7E2AC8 #C82F2A #74C82A #2AC3C8
square
#7E2AC8 #C82F2A #74C82A #2AC3C8
split-complementary
#7E2AC8 #C3C82A #2AC82F
monochromatic
#3E1563 #5E1F95 #7E2AC8 #9C54DB #B987E6

Accessibility & contrast

On white

6.88
#7E2AC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7E2AC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2AC8
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AC8#FFFFFF#000000##FFFFFF
##7E2AC81.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#6E5579
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e2ac8;
/* rgb */ color: rgb(126, 42, 200);
/* oklch */ color: oklch(49.7% 0.225 302.8);
Tailwind
colors: {
  custom: {
    50: '#aa6eda',
    500: '#7e2ac8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ac8;
$custom-light: #aa6eda;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ac8",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 200
  },
  "hsl": {
    "h": 271.899,
    "s": 65.289,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49674,
    "c": 0.22467,
    "h": 302.8
  },
  "luminance": 0.10262
}

Semantic roles & 50–950 ramp

primary
#7E2AC8
secondary
#A4CF7F
accent
#E8408F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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