#7E46A7#7E46A7

#7E46A7 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.6% C 0.155 H 308.5°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7E46A7
RGBrgb(126, 70, 167)
HSLhsl(275, 41%, 46%)
HSVhsv(275, 58%, 65%)
CMYKcmyk(24.6%, 58.1%, 0%, 34.5%)
CIE-LABlab(40.58, 42.00, -43.08)
CIE-LCHlch(40.58, 60.16, 314.28°)
OKLaboklab(50.56% 0.0964 -0.1212)
OKLCHoklch(50.56% 0.155 308.5)
XYZxyz(17.7680, 11.6062, 37.8559)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46A7 #6FA746
analogous
#4E46A7 #7E46A7 #A746A0
triadic
#7E46A7 #A77E46 #46A77E
tetradic
#7E46A7 #A74E46 #6FA746 #46A0A7
square
#7E46A7 #A74E46 #6FA746 #46A0A7
split-complementary
#7E46A7 #A0A746 #46A74E
monochromatic
#3D2251 #5D347C #7E46A7 #9C6AC0 #B895D3

Accessibility & contrast

On white

6.32
#7E46A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7E46A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46A7
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46A7#FFFFFF#000000##FFFFFF
##7E46A71.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235DAA
Deuteranopia (green-blind)
#3960A5
Tritanopia (blue-blind)
#785870
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e46a7;
/* rgb */ color: rgb(126, 70, 167);
/* oklch */ color: oklch(50.6% 0.155 308.5);
Tailwind
colors: {
  custom: {
    50: '#a67cc2',
    500: '#7e46a7',
    950: '#000000',
  },
}
SCSS
$custom: #7e46a7;
$custom-light: #a67cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46a7",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 167
  },
  "hsl": {
    "h": 274.639,
    "s": 40.928,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50562,
    "c": 0.15487,
    "h": 308.5
  },
  "luminance": 0.11606
}

Semantic roles & 50–950 ramp

primary
#7E46A7
secondary
#A0BE8A
accent
#D1578A
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #7E46A7

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

Preview Lab → · Contrast checker → · Palette generator →

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