#7E46BA#7E46BA

#7E46BA is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.8% C 0.177 H 302.9°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7E46BA
RGBrgb(126, 70, 186)
HSLhsl(269, 46%, 50%)
HSVhsv(269, 62%, 73%)
CMYKcmyk(32.3%, 62.4%, 0%, 27.1%)
CIE-LABlab(41.78, 46.61, -52.37)
CIE-LCHlch(41.78, 70.10, 311.67°)
OKLaboklab(51.82% 0.0961 -0.1485)
OKLCHoklch(51.82% 0.177 302.9)
XYZxyz(19.6552, 12.3611, 47.7953)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46BA #82BA46
analogous
#4648BA #7E46BA #B846BA
triadic
#7E46BA #BA7E46 #46BA7E
tetradic
#7E46BA #BA4648 #82BA46 #46BAB8
square
#7E46BA #BA4648 #82BA46 #46BAB8
split-complementary
#7E46BA #BAB846 #48BA46
monochromatic
#422461 #60358E #7E46BA #9D73CB #BC9FDB

Accessibility & contrast

On white

6.05
#7E46BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7E46BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46BA
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46BA#FFFFFF#000000##FFFFFF
##7E46BA1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#2462B7
Tritanopia (blue-blind)
#725E79
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e46ba;
/* rgb */ color: rgb(126, 70, 186);
/* oklch */ color: oklch(51.8% 0.177 302.9);
Tailwind
colors: {
  custom: {
    50: '#a77ccf',
    500: '#7e46ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e46ba;
$custom-light: #a77ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46ba",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 186
  },
  "hsl": {
    "h": 268.966,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51822,
    "c": 0.17687,
    "h": 302.9
  },
  "luminance": 0.12361
}

Semantic roles & 50–950 ramp

primary
#7E46BA
secondary
#AFC894
accent
#D55296
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E46BA

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

Preview Lab → · Contrast checker → · Palette generator →

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