#7E46AE#7E46AE

#7E46AE is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.0% C 0.163 H 306.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7E46AE
RGBrgb(126, 70, 174)
HSLhsl(272, 43%, 48%)
HSVhsv(272, 60%, 68%)
CMYKcmyk(27.6%, 59.8%, 0%, 31.8%)
CIE-LABlab(41.01, 43.67, -46.54)
CIE-LCHlch(41.01, 63.83, 313.18°)
OKLaboklab(51.01% 0.0965 -0.1314)
OKLCHoklch(51.01% 0.163 306.3)
XYZxyz(18.4327, 11.8721, 41.3567)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46AE #76AE46
analogous
#4A46AE #7E46AE #AE46AA
triadic
#7E46AE #AE7E46 #46AE7E
tetradic
#7E46AE #AE4A46 #76AE46 #46AAAE
square
#7E46AE #AE4A46 #76AE46 #46AAAE
split-complementary
#7E46AE #AAAE46 #46AE4A
monochromatic
#3F2357 #5E3482 #7E46AE #9C6DC4 #BA99D6

Accessibility & contrast

On white

6.22
#7E46AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7E46AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46AE
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46AE#FFFFFF#000000##FFFFFF
##7E46AE1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195FB1
Deuteranopia (green-blind)
#3361AC
Tritanopia (blue-blind)
#765A73
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e46ae;
/* rgb */ color: rgb(126, 70, 174);
/* oklch */ color: oklch(51.0% 0.163 306.3);
Tailwind
colors: {
  custom: {
    50: '#a77cc7',
    500: '#7e46ae',
    950: '#000000',
  },
}
SCSS
$custom: #7e46ae;
$custom-light: #a77cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46ae",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 174
  },
  "hsl": {
    "h": 272.308,
    "s": 42.623,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51013,
    "c": 0.16299,
    "h": 306.3
  },
  "luminance": 0.11872
}

Semantic roles & 50–950 ramp

primary
#7E46AE
secondary
#A6C28E
accent
#D2558F
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E46AE

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

Preview Lab → · Contrast checker → · Palette generator →

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