#7E46AC#7E46AC

#7E46AC is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.9% C 0.161 H 306.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7E46AC
RGBrgb(126, 70, 172)
HSLhsl(273, 42%, 47%)
HSVhsv(273, 59%, 67%)
CMYKcmyk(26.7%, 59.3%, 0%, 32.5%)
CIE-LABlab(40.89, 43.19, -45.56)
CIE-LCHlch(40.89, 62.78, 313.47°)
OKLaboklab(50.88% 0.0965 -0.1285)
OKLCHoklch(50.88% 0.161 306.9)
XYZxyz(18.2392, 11.7947, 40.3375)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46AC #74AC46
analogous
#4B46AC #7E46AC #AC46A7
triadic
#7E46AC #AC7E46 #46AC7E
tetradic
#7E46AC #AC4B46 #74AC46 #46A7AC
square
#7E46AC #AC4B46 #74AC46 #46A7AC
split-complementary
#7E46AC #A7AC46 #46AC4B
monochromatic
#3E2355 #5E3481 #7E46AC #9C6CC3 #B998D5

Accessibility & contrast

On white

6.25
#7E46AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7E46AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46AC
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46AC#FFFFFF#000000##FFFFFF
##7E46AC1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5EAF
Deuteranopia (green-blind)
#3561AA
Tritanopia (blue-blind)
#775A72
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e46ac;
/* rgb */ color: rgb(126, 70, 172);
/* oklch */ color: oklch(50.9% 0.161 306.9);
Tailwind
colors: {
  custom: {
    50: '#a67cc5',
    500: '#7e46ac',
    950: '#000000',
  },
}
SCSS
$custom: #7e46ac;
$custom-light: #a67cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46ac",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 172
  },
  "hsl": {
    "h": 272.941,
    "s": 42.149,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50883,
    "c": 0.16067,
    "h": 306.9
  },
  "luminance": 0.11794
}

Semantic roles & 50–950 ramp

primary
#7E46AC
secondary
#A4C18D
accent
#D2568E
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E46AC

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

Preview Lab → · Contrast checker → · Palette generator →

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