#7E46BB#7E46BB

#7E46BB is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.9% C 0.178 H 302.7°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7E46BB
RGBrgb(126, 70, 187)
HSLhsl(269, 46%, 50%)
HSVhsv(269, 63%, 73%)
CMYKcmyk(32.6%, 62.6%, 0%, 26.7%)
CIE-LABlab(41.85, 46.85, -52.85)
CIE-LCHlch(41.85, 70.63, 311.56°)
OKLaboklab(51.89% 0.0961 -0.1499)
OKLCHoklch(51.89% 0.178 302.7)
XYZxyz(19.7619, 12.4038, 48.3571)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46BB #83BB46
analogous
#4648BB #7E46BB #B846BB
triadic
#7E46BB #BB7E46 #46BB7E
tetradic
#7E46BB #BB4648 #83BB46 #46BBB8
square
#7E46BB #BB4648 #83BB46 #46BBB8
split-complementary
#7E46BB #BBB846 #48BB46
monochromatic
#422462 #60358F #7E46BB #9D73CB #BCA0DC

Accessibility & contrast

On white

6.03
#7E46BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7E46BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46BB
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46BB#FFFFFF#000000##FFFFFF
##7E46BB1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#2262B8
Tritanopia (blue-blind)
#725F7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e46bb;
/* rgb */ color: rgb(126, 70, 187);
/* oklch */ color: oklch(51.9% 0.178 302.7);
Tailwind
colors: {
  custom: {
    50: '#a87cd0',
    500: '#7e46bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e46bb;
$custom-light: #a87cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46bb",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 187
  },
  "hsl": {
    "h": 268.718,
    "s": 46.245,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51892,
    "c": 0.17802,
    "h": 302.7
  },
  "luminance": 0.12404
}

Semantic roles & 50–950 ramp

primary
#7E46BB
secondary
#B0C894
accent
#D65297
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E46BB

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

Preview Lab → · Contrast checker → · Palette generator →

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