#7E46BF#7E46BF

#7E46BF is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.2% C 0.183 H 301.6°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7E46BF
RGBrgb(126, 70, 191)
HSLhsl(268, 49%, 51%)
HSVhsv(268, 63%, 75%)
CMYKcmyk(34%, 63.4%, 0%, 25.1%)
CIE-LABlab(42.12, 47.85, -54.75)
CIE-LCHlch(42.12, 72.71, 311.15°)
OKLaboklab(52.17% 0.0958 -0.1555)
OKLCHoklch(52.17% 0.183 301.6)
XYZxyz(20.1961, 12.5775, 50.6438)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46BF #87BF46
analogous
#464ABF #7E46BF #BA46BF
triadic
#7E46BF #BF7E46 #46BF7E
tetradic
#7E46BF #BF464A #87BF46 #46BFBA
square
#7E46BF #BF464A #87BF46 #46BFBA
split-complementary
#7E46BF #BFBA46 #4ABF46
monochromatic
#432467 #603394 #7E46BF #9E73CF #BDA1DE

Accessibility & contrast

On white

5.97
#7E46BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7E46BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46BF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46BF#FFFFFF#000000##FFFFFF
##7E46BF1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#1A63BC
Tritanopia (blue-blind)
#71607C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e46bf;
/* rgb */ color: rgb(126, 70, 191);
/* oklch */ color: oklch(52.2% 0.183 301.6);
Tailwind
colors: {
  custom: {
    50: '#a87dd3',
    500: '#7e46bf',
    950: '#000000',
  },
}
SCSS
$custom: #7e46bf;
$custom-light: #a87dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46bf",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 191
  },
  "hsl": {
    "h": 267.769,
    "s": 48.594,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52172,
    "c": 0.18263,
    "h": 301.6
  },
  "luminance": 0.12578
}

Semantic roles & 50–950 ramp

primary
#7E46BF
secondary
#B2CB96
accent
#D85099
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E46BF

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

Preview Lab → · Contrast checker → · Palette generator →

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