#7E46D9#7E46D9

#7E46D9 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.1% C 0.212 H 296.0°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7E46D9
RGBrgb(126, 70, 217)
HSLhsl(263, 66%, 56%)
HSVhsv(263, 68%, 85%)
CMYKcmyk(41.9%, 67.7%, 0%, 14.9%)
CIE-LABlab(43.98, 54.46, -66.76)
CIE-LCHlch(43.98, 86.15, 309.21°)
OKLaboklab(54.1% 0.0929 -0.1908)
OKLCHoklch(54.1% 0.212 296)
XYZxyz(23.3154, 13.8252, 67.0723)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46D9 #A1D946
analogous
#4658D9 #7E46D9 #C846D9
triadic
#7E46D9 #D97E46 #46D97E
tetradic
#7E46D9 #D94658 #A1D946 #46D9C8
square
#7E46D9 #D94658 #A1D946 #46D9C8
split-complementary
#7E46D9 #D9C846 #58D946
monochromatic
#451C89 #5F26BB #7E46D9 #A179E3 #C5ACEE

Accessibility & contrast

On white

5.58
#7E46D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#7E46D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46D9
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46D9#FFFFFF#000000##FFFFFF
##7E46D91.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DD
Deuteranopia (green-blind)
#0066D6
Tritanopia (blue-blind)
#666A8A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e46d9;
/* rgb */ color: rgb(126, 70, 217);
/* oklch */ color: oklch(54.1% 0.212 296.0);
Tailwind
colors: {
  custom: {
    50: '#aa7de6',
    500: '#7e46d9',
    950: '#000000',
  },
}
SCSS
$custom: #7e46d9;
$custom-light: #aa7de6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46d9",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 217
  },
  "hsl": {
    "h": 262.857,
    "s": 65.919,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54099,
    "c": 0.21219,
    "h": 296
  },
  "luminance": 0.13826
}

Semantic roles & 50–950 ramp

primary
#7E46D9
secondary
#C5DC9F
accent
#E93FA8
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E46D9

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

Preview Lab → · Contrast checker → · Palette generator →

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