#7A3ABA#7A3ABA

#7A3ABA is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.8% C 0.192 H 302.9°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7A3ABA
RGBrgb(122, 58, 186)
HSLhsl(270, 52%, 48%)
HSVhsv(270, 69%, 73%)
CMYKcmyk(34.4%, 68.8%, 0%, 27.1%)
CIE-LABlab(39.09, 51.80, -56.75)
CIE-LCHlch(39.09, 76.84, 312.39°)
OKLaboklab(49.77% 0.1043 -0.1614)
OKLCHoklch(49.77% 0.192 302.9)
XYZxyz(18.3999, 10.7088, 47.5425)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3ABA #7ABA3A
analogous
#3A3ABA #7A3ABA #BA3ABA
triadic
#7A3ABA #BA7A3A #3ABA7A
tetradic
#7A3ABA #BA3A3A #7ABA3A #3ABABA
square
#7A3ABA #BA3A3A #7ABA3A #3ABABA
split-complementary
#7A3ABA #BABA3A #3ABA3A
monochromatic
#3D1D5D #5B2B8B #7A3ABA #9963CE #B792DD

Accessibility & contrast

On white

6.68
#7A3ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7A3ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A3ABA
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3ABA#FFFFFF#000000##FFFFFF
##7A3ABA1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#6D5875
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7a3aba;
/* rgb */ color: rgb(122, 58, 186);
/* oklch */ color: oklch(49.8% 0.192 302.9);
Tailwind
colors: {
  custom: {
    50: '#a575d0',
    500: '#7a3aba',
    950: '#000000',
  },
}
SCSS
$custom: #7a3aba;
$custom-light: #a575d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3aba",
  "rgb": {
    "r": 122,
    "g": 58,
    "b": 186
  },
  "hsl": {
    "h": 270,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49772,
    "c": 0.19219,
    "h": 302.9
  },
  "luminance": 0.10709
}

Semantic roles & 50–950 ramp

primary
#7A3ABA
secondary
#A8C888
accent
#DC4C94
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7A3ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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