#7E46F2#7E46F2

#7E46F2 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.240 H 291.6°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7E46F2
RGBrgb(126, 70, 242)
HSLhsl(260, 87%, 61%)
HSVhsv(260, 71%, 95%)
CMYKcmyk(47.9%, 71.1%, 0%, 5.1%)
CIE-LABlab(45.94, 60.95, -77.73)
CIE-LCHlch(45.94, 98.77, 308.10°)
OKLaboklab(56.1% 0.0884 -0.223)
OKLCHoklch(56.1% 0.24 291.6)
XYZxyz(26.8168, 15.2258, 85.5131)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46F2 #BAF246
analogous
#4664F2 #7E46F2 #D446F2
triadic
#7E46F2 #F27E46 #46F27E
tetradic
#7E46F2 #F24664 #BAF246 #46F2D4
square
#7E46F2 #F24664 #BAF246 #46F2D4
split-complementary
#7E46F2 #F2D446 #64F246
monochromatic
#420CB1 #5710EA #7E46F2 #A67FF6 #CEB8FA

Accessibility & contrast

On white

5.19
#7E46F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7E46F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46F2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46F2#FFFFFF#000000##FFFFFF
##7E46F21.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF7
Deuteranopia (green-blind)
#0069EF
Tritanopia (blue-blind)
#587398
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e46f2;
/* rgb */ color: rgb(126, 70, 242);
/* oklch */ color: oklch(56.1% 0.240 291.6);
Tailwind
colors: {
  custom: {
    50: '#ad7ef8',
    500: '#7e46f2',
    950: '#000000',
  },
}
SCSS
$custom: #7e46f2;
$custom-light: #ad7ef8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46f2",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 242
  },
  "hsl": {
    "h": 259.535,
    "s": 86.869,
    "l": 61.176
  },
  "oklch": {
    "l": 0.56103,
    "c": 0.23989,
    "h": 291.6
  },
  "luminance": 0.15227
}

Semantic roles & 50–950 ramp

primary
#7E46F2
secondary
#D5EAAA
accent
#E3029A
background
#FBF7FF
surface
#F6EEFF
border
#D0C9D7
text
#110A17
muted
#807C85

Preview Lab

Preview with #7E46F2

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

Preview Lab → · Contrast checker → · Palette generator →

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