#7A3EC2#7A3EC2

#7A3EC2 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.9% C 0.196 H 300.3°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7A3EC2
RGBrgb(122, 62, 194)
HSLhsl(267, 52%, 50%)
HSVhsv(267, 68%, 76%)
CMYKcmyk(37.1%, 68%, 0%, 23.9%)
CIE-LABlab(40.37, 51.82, -59.35)
CIE-LCHlch(40.37, 78.79, 311.13°)
OKLaboklab(50.88% 0.0989 -0.1691)
OKLCHoklch(50.88% 0.196 300.3)
XYZxyz(19.4839, 11.4777, 52.2174)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3EC2 #86C23E
analogous
#3E44C2 #7A3EC2 #BC3EC2
triadic
#7A3EC2 #C27A3E #3EC27A
tetradic
#7A3EC2 #C23E44 #86C23E #3EC2BC
square
#7A3EC2 #C23E44 #86C23E #3EC2BC
split-complementary
#7A3EC2 #C2BC3E #44C23E
monochromatic
#402066 #5D2F94 #7A3EC2 #9A6DD1 #BA9BDF

Accessibility & contrast

On white

6.37
#7A3EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7A3EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A3EC2
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3EC2#FFFFFF#000000##FFFFFF
##7A3EC21.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#6A5D7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7a3ec2;
/* rgb */ color: rgb(122, 62, 194);
/* oklch */ color: oklch(50.9% 0.196 300.3);
Tailwind
colors: {
  custom: {
    50: '#a678d5',
    500: '#7a3ec2',
    950: '#000000',
  },
}
SCSS
$custom: #7a3ec2;
$custom-light: #a678d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3ec2",
  "rgb": {
    "r": 122,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 267.273,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50877,
    "c": 0.19591,
    "h": 300.3
  },
  "luminance": 0.11478
}

Semantic roles & 50–950 ramp

primary
#7A3EC2
secondary
#B1CB90
accent
#DB4C9A
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A3EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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