#7A3EC4#7A3EC4

#7A3EC4 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.0% C 0.198 H 299.9°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7A3EC4
RGBrgb(122, 62, 196)
HSLhsl(267, 53%, 51%)
HSVhsv(267, 68%, 77%)
CMYKcmyk(37.8%, 68.4%, 0%, 23.1%)
CIE-LABlab(40.52, 52.32, -60.28)
CIE-LCHlch(40.52, 79.82, 310.96°)
OKLaboklab(51.03% 0.0987 -0.1718)
OKLCHoklch(51.03% 0.198 299.9)
XYZxyz(19.7100, 11.5682, 53.4083)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3EC4 #88C43E
analogous
#3E45C4 #7A3EC4 #BD3EC4
triadic
#7A3EC4 #C47A3E #3EC47A
tetradic
#7A3EC4 #C43E45 #88C43E #3EC4BD
square
#7A3EC4 #C43E45 #88C43E #3EC4BD
split-complementary
#7A3EC4 #C4BD3E #45C43E
monochromatic
#402068 #5D2E97 #7A3EC4 #9A6DD2 #BB9CE1

Accessibility & contrast

On white

6.34
#7A3EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7A3EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A3EC4
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3EC4#FFFFFF#000000##FFFFFF
##7A3EC41.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#695E7C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7a3ec4;
/* rgb */ color: rgb(122, 62, 196);
/* oklch */ color: oklch(51.0% 0.198 299.9);
Tailwind
colors: {
  custom: {
    50: '#a678d7',
    500: '#7a3ec4',
    950: '#000000',
  },
}
SCSS
$custom: #7a3ec4;
$custom-light: #a678d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3ec4",
  "rgb": {
    "r": 122,
    "g": 62,
    "b": 196
  },
  "hsl": {
    "h": 266.866,
    "s": 53.175,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51029,
    "c": 0.19813,
    "h": 299.9
  },
  "luminance": 0.11568
}

Semantic roles & 50–950 ramp

primary
#7A3EC4
secondary
#B2CD91
accent
#DD4B9B
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A3EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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