#7A3AB6#7A3AB6

#7A3AB6 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.5% C 0.188 H 303.9°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7A3AB6
RGBrgb(122, 58, 182)
HSLhsl(271, 52%, 47%)
HSVhsv(271, 68%, 71%)
CMYKcmyk(33%, 68.1%, 0%, 28.6%)
CIE-LABlab(38.80, 50.84, -54.87)
CIE-LCHlch(38.80, 74.80, 312.82°)
OKLaboklab(49.47% 0.1048 -0.1559)
OKLCHoklch(49.47% 0.188 303.9)
XYZxyz(17.9807, 10.5411, 45.3343)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3AB6 #76B63A
analogous
#3C3AB6 #7A3AB6 #B63AB4
triadic
#7A3AB6 #B67A3A #3AB67A
tetradic
#7A3AB6 #B63C3A #76B63A #3AB4B6
square
#7A3AB6 #B63C3A #76B63A #3AB4B6
split-complementary
#7A3AB6 #B4B63A #3AB63C
monochromatic
#3C1C59 #5B2B88 #7A3AB6 #9861CD #B68FDB

Accessibility & contrast

On white

6.76
#7A3AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7A3AB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A3AB6
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3AB6#FFFFFF#000000##FFFFFF
##7A3AB61.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABA
Deuteranopia (green-blind)
#045BB3
Tritanopia (blue-blind)
#6F5673
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7a3ab6;
/* rgb */ color: rgb(122, 58, 182);
/* oklch */ color: oklch(49.5% 0.188 303.9);
Tailwind
colors: {
  custom: {
    50: '#a575cd',
    500: '#7a3ab6',
    950: '#000000',
  },
}
SCSS
$custom: #7a3ab6;
$custom-light: #a575cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3ab6",
  "rgb": {
    "r": 122,
    "g": 58,
    "b": 182
  },
  "hsl": {
    "h": 270.968,
    "s": 51.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49474,
    "c": 0.18785,
    "h": 303.9
  },
  "luminance": 0.10541
}

Semantic roles & 50–950 ramp

primary
#7A3AB6
secondary
#A5C686
accent
#DB4D92
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7A3AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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