#7A3EC5#7A3EC5

#7A3EC5 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.1% C 0.199 H 299.6°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7A3EC5
RGBrgb(122, 62, 197)
HSLhsl(267, 54%, 51%)
HSVhsv(267, 69%, 77%)
CMYKcmyk(38.1%, 68.5%, 0%, 22.7%)
CIE-LABlab(40.60, 52.57, -60.74)
CIE-LCHlch(40.60, 80.33, 310.88°)
OKLaboklab(51.11% 0.0985 -0.1732)
OKLCHoklch(51.11% 0.199 299.6)
XYZxyz(19.8242, 11.6138, 54.0098)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3EC5 #89C53E
analogous
#3E45C5 #7A3EC5 #BE3EC5
triadic
#7A3EC5 #C57A3E #3EC57A
tetradic
#7A3EC5 #C53E45 #89C53E #3EC5BE
square
#7A3EC5 #C53E45 #89C53E #3EC5BE
split-complementary
#7A3EC5 #C5BE3E #45C53E
monochromatic
#402069 #5D2E98 #7A3EC5 #9A6DD3 #BB9CE1

Accessibility & contrast

On white

6.32
#7A3EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7A3EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A3EC5
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3EC5#FFFFFF#000000##FFFFFF
##7A3EC51.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC9
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#695E7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a3ec5;
/* rgb */ color: rgb(122, 62, 197);
/* oklch */ color: oklch(51.1% 0.199 299.6);
Tailwind
colors: {
  custom: {
    50: '#a678d7',
    500: '#7a3ec5',
    950: '#000000',
  },
}
SCSS
$custom: #7a3ec5;
$custom-light: #a678d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3ec5",
  "rgb": {
    "r": 122,
    "g": 62,
    "b": 197
  },
  "hsl": {
    "h": 266.667,
    "s": 53.785,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51106,
    "c": 0.19923,
    "h": 299.6
  },
  "luminance": 0.11614
}

Semantic roles & 50–950 ramp

primary
#7A3EC5
secondary
#B3CD91
accent
#DD4B9C
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A3EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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