#7E46BE#7E46BE

#7E46BE is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.1% C 0.181 H 301.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7E46BE
RGBrgb(126, 70, 190)
HSLhsl(268, 48%, 51%)
HSVhsv(268, 63%, 75%)
CMYKcmyk(33.7%, 63.2%, 0%, 25.5%)
CIE-LABlab(42.05, 47.60, -54.28)
CIE-LCHlch(42.05, 72.19, 311.25°)
OKLaboklab(52.1% 0.0959 -0.1541)
OKLCHoklch(52.1% 0.181 301.9)
XYZxyz(20.0864, 12.5336, 50.0662)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46BE #86BE46
analogous
#464ABE #7E46BE #BA46BE
triadic
#7E46BE #BE7E46 #46BE7E
tetradic
#7E46BE #BE464A #86BE46 #46BEBA
square
#7E46BE #BE464A #86BE46 #46BEBA
split-complementary
#7E46BE #BEBA46 #4ABE46
monochromatic
#432466 #603493 #7E46BE #9E73CE #BDA1DE

Accessibility & contrast

On white

5.99
#7E46BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7E46BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46BE
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46BE#FFFFFF#000000##FFFFFF
##7E46BE1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#1D63BB
Tritanopia (blue-blind)
#71607C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e46be;
/* rgb */ color: rgb(126, 70, 190);
/* oklch */ color: oklch(52.1% 0.181 301.9);
Tailwind
colors: {
  custom: {
    50: '#a87cd2',
    500: '#7e46be',
    950: '#000000',
  },
}
SCSS
$custom: #7e46be;
$custom-light: #a87cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46be",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 190
  },
  "hsl": {
    "h": 268,
    "s": 48,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52102,
    "c": 0.18149,
    "h": 301.9
  },
  "luminance": 0.12534
}

Semantic roles & 50–950 ramp

primary
#7E46BE
secondary
#B2CA95
accent
#D85098
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E46BE

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

Preview Lab → · Contrast checker → · Palette generator →

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