#7E2AAC#7E2AAC

#7E2AAC is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.5% C 0.198 H 310.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7E2AAC
RGBrgb(126, 42, 172)
HSLhsl(279, 61%, 42%)
HSVhsv(279, 76%, 67%)
CMYKcmyk(26.7%, 75.6%, 0%, 32.5%)
CIE-LABlab(36.12, 56.38, -53.24)
CIE-LCHlch(36.12, 77.54, 316.64°)
OKLaboklab(47.46% 0.1281 -0.1509)
OKLCHoklch(47.46% 0.198 310.3)
XYZxyz(16.8771, 9.0705, 39.8834)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AAC #58AC2A
analogous
#3D2AAC #7E2AAC #AC2A99
triadic
#7E2AAC #AC7E2A #2AAC7E
tetradic
#7E2AAC #AC3D2A #58AC2A #2A99AC
square
#7E2AAC #AC3D2A #58AC2A #2A99AC
split-complementary
#7E2AAC #99AC2A #2AAC3D
monochromatic
#36124A #5A1E7B #7E2AAC #9E42D1 #B873DD

Accessibility & contrast

On white

7.46
#7E2AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E2AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AAC
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AAC#FFFFFF#000000##FFFFFF
##7E2AAC1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0856A9
Tritanopia (blue-blind)
#784969
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2aac;
/* rgb */ color: rgb(126, 42, 172);
/* oklch */ color: oklch(47.5% 0.198 310.3);
Tailwind
colors: {
  custom: {
    50: '#a86cc6',
    500: '#7e2aac',
    950: '#000000',
  },
}
SCSS
$custom: #7e2aac;
$custom-light: #a86cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2aac",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 278.769,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47457,
    "c": 0.19789,
    "h": 310.3
  },
  "luminance": 0.0907
}

Semantic roles & 50–950 ramp

primary
#7E2AAC
secondary
#8CC46D
accent
#E4447D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E2AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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