#7E46AA#7E46AA

#7E46AA is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.8% C 0.158 H 307.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7E46AA
RGBrgb(126, 70, 170)
HSLhsl(274, 42%, 47%)
HSVhsv(274, 59%, 67%)
CMYKcmyk(25.9%, 58.8%, 0%, 33.3%)
CIE-LABlab(40.77, 42.71, -44.57)
CIE-LCHlch(40.77, 61.73, 313.78°)
OKLaboklab(50.75% 0.0965 -0.1256)
OKLCHoklch(50.75% 0.158 307.5)
XYZxyz(18.0486, 11.7184, 39.3335)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46AA #72AA46
analogous
#4C46AA #7E46AA #AA46A4
triadic
#7E46AA #AA7E46 #46AA7E
tetradic
#7E46AA #AA4C46 #72AA46 #46A4AA
square
#7E46AA #AA4C46 #72AA46 #46A4AA
split-complementary
#7E46AA #A4AA46 #46AA4C
monochromatic
#3E2253 #5E347F #7E46AA #9C6BC2 #B996D4

Accessibility & contrast

On white

6.28
#7E46AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7E46AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46AA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46AA#FFFFFF#000000##FFFFFF
##7E46AA1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5EAD
Deuteranopia (green-blind)
#3761A8
Tritanopia (blue-blind)
#775971
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e46aa;
/* rgb */ color: rgb(126, 70, 170);
/* oklch */ color: oklch(50.8% 0.158 307.5);
Tailwind
colors: {
  custom: {
    50: '#a67cc4',
    500: '#7e46aa',
    950: '#000000',
  },
}
SCSS
$custom: #7e46aa;
$custom-light: #a67cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46aa",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 170
  },
  "hsl": {
    "h": 273.6,
    "s": 41.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50754,
    "c": 0.15836,
    "h": 307.5
  },
  "luminance": 0.11718
}

Semantic roles & 50–950 ramp

primary
#7E46AA
secondary
#A3C08C
accent
#D1568D
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E46AA

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

Preview Lab → · Contrast checker → · Palette generator →

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