#7E46E1#7E46E1

#7E46E1 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.7% C 0.221 H 294.5°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7E46E1
RGBrgb(126, 70, 225)
HSLhsl(262, 72%, 58%)
HSVhsv(262, 69%, 88%)
CMYKcmyk(44%, 68.9%, 0%, 11.8%)
CIE-LABlab(44.59, 56.52, -70.33)
CIE-LCHlch(44.59, 90.23, 308.79°)
OKLaboklab(54.73% 0.0916 -0.2013)
OKLCHoklch(54.73% 0.221 294.5)
XYZxyz(24.3813, 14.2515, 72.6858)
Luminance0.1425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46E1 #A9E146
analogous
#465CE1 #7E46E1 #CB46E1
triadic
#7E46E1 #E17E46 #46E17E
tetradic
#7E46E1 #E1465C #A9E146 #46E1CB
square
#7E46E1 #E1465C #A9E146 #46E1CB
split-complementary
#7E46E1 #E1CB46 #5CE146
monochromatic
#451895 #5E21C9 #7E46E1 #A37BEA #C7AFF2

Accessibility & contrast

On white

5.45
#7E46E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7E46E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46E1
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46E1#FFFFFF#000000##FFFFFF
##7E46E11.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE6
Deuteranopia (green-blind)
#0067DE
Tritanopia (blue-blind)
#626D8E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e46e1;
/* rgb */ color: rgb(126, 70, 225);
/* oklch */ color: oklch(54.7% 0.221 294.5);
Tailwind
colors: {
  custom: {
    50: '#ab7eeb',
    500: '#7e46e1',
    950: '#000000',
  },
}
SCSS
$custom: #7e46e1;
$custom-light: #ab7eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46e1",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 225
  },
  "hsl": {
    "h": 261.677,
    "s": 72.093,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54725,
    "c": 0.22113,
    "h": 294.5
  },
  "luminance": 0.14252
}

Semantic roles & 50–950 ramp

primary
#7E46E1
secondary
#CAE0A2
accent
#EF39AD
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E46E1

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

Preview Lab → · Contrast checker → · Palette generator →

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