#7A3EC6#7A3EC6

#7A3EC6 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.200 H 299.4°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7A3EC6
RGBrgb(122, 62, 198)
HSLhsl(266, 54%, 51%)
HSVhsv(266, 69%, 78%)
CMYKcmyk(38.4%, 68.7%, 0%, 22.4%)
CIE-LABlab(40.67, 52.83, -61.20)
CIE-LCHlch(40.67, 80.85, 310.80°)
OKLaboklab(51.18% 0.0984 -0.1745)
OKLCHoklch(51.18% 0.2 299.4)
XYZxyz(19.9392, 11.6598, 54.6152)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3EC6 #8AC63E
analogous
#3E46C6 #7A3EC6 #BE3EC6
triadic
#7A3EC6 #C67A3E #3EC67A
tetradic
#7A3EC6 #C63E46 #8AC63E #3EC6BE
square
#7A3EC6 #C63E46 #8AC63E #3EC6BE
split-complementary
#7A3EC6 #C6BE3E #46C63E
monochromatic
#401F6A #5D2D99 #7A3EC6 #9B6DD4 #BB9CE2

Accessibility & contrast

On white

6.30
#7A3EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7A3EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A3EC6
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3EC6#FFFFFF#000000##FFFFFF
##7A3EC61.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CA
Deuteranopia (green-blind)
#005FC3
Tritanopia (blue-blind)
#685E7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a3ec6;
/* rgb */ color: rgb(122, 62, 198);
/* oklch */ color: oklch(51.2% 0.200 299.4);
Tailwind
colors: {
  custom: {
    50: '#a678d8',
    500: '#7a3ec6',
    950: '#000000',
  },
}
SCSS
$custom: #7a3ec6;
$custom-light: #a678d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3ec6",
  "rgb": {
    "r": 122,
    "g": 62,
    "b": 198
  },
  "hsl": {
    "h": 266.471,
    "s": 54.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51182,
    "c": 0.20033,
    "h": 299.4
  },
  "luminance": 0.1166
}

Semantic roles & 50–950 ramp

primary
#7A3EC6
secondary
#B3CE92
accent
#DE4A9D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A3EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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