#7E46FF#7E46FF

#7E46FF is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.2% C 0.254 H 289.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7E46FF
RGBrgb(126, 70, 255)
HSLhsl(258, 100%, 64%)
HSVhsv(258, 73%, 100%)
CMYKcmyk(50.6%, 72.5%, 0%, 0%)
CIE-LABlab(47.02, 64.35, -83.23)
CIE-LCHlch(47.02, 105.20, 307.71°)
OKLaboklab(57.2% 0.0856 -0.2391)
OKLCHoklch(57.2% 0.254 289.7)
XYZxyz(28.8391, 16.0347, 96.1638)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46FF #C7FF46
analogous
#466AFF #7E46FF #DA46FF
triadic
#7E46FF #FF7E46 #46FF7E
tetradic
#7E46FF #FF466A #C7FF46 #46FFDA
square
#7E46FF #FF466A #C7FF46 #46FFDA
split-complementary
#7E46FF #FFDA46 #6AFF46
monochromatic
#3D00CB #5309FF #7E46FF #A983FF #D3C0FF

Accessibility & contrast

On white

4.99
#7E46FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7E46FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46FF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46FF#FFFFFF#000000##FFFFFF
##7E46FF1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073FF
Deuteranopia (green-blind)
#006BFB
Tritanopia (blue-blind)
#4F789F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e46ff;
/* rgb */ color: rgb(126, 70, 255);
/* oklch */ color: oklch(57.2% 0.254 289.7);
Tailwind
colors: {
  custom: {
    50: '#af7fff',
    500: '#7e46ff',
    950: '#000000',
  },
}
SCSS
$custom: #7e46ff;
$custom-light: #af7fff;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46ff",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 255
  },
  "hsl": {
    "h": 258.162,
    "s": 100,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57196,
    "c": 0.25399,
    "h": 289.7
  },
  "luminance": 0.16036
}

Semantic roles & 50–950 ramp

primary
#7E46FF
secondary
#DDF1B0
accent
#E600A0
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#120A18
muted
#817C86

Preview Lab

Preview with #7E46FF

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

Preview Lab → · Contrast checker → · Palette generator →

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