#7A3CBA#7A3CBA

#7A3CBA is a mid, vivid violet. Relative luminance 0.109; OKLCH L 50.0% C 0.190 H 302.6°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7A3CBA
RGBrgb(122, 60, 186)
HSLhsl(270, 51%, 48%)
HSVhsv(270, 68%, 73%)
CMYKcmyk(34.4%, 67.7%, 0%, 27.1%)
CIE-LABlab(39.44, 50.83, -56.19)
CIE-LCHlch(39.44, 75.77, 312.14°)
OKLaboklab(50.02% 0.1021 -0.1598)
OKLCHoklch(50.02% 0.19 302.6)
XYZxyz(18.5027, 10.9144, 47.5768)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3CBA #7CBA3C
analogous
#3C3DBA #7A3CBA #B93CBA
triadic
#7A3CBA #BA7A3C #3CBA7A
tetradic
#7A3CBA #BA3C3D #7CBA3C #3CBAB9
square
#7A3CBA #BA3C3D #7CBA3C #3CBAB9
split-complementary
#7A3CBA #BAB93C #3DBA3C
monochromatic
#3D1E5D #5C2D8C #7A3CBA #9966CE #B894DC

Accessibility & contrast

On white

6.60
#7A3CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7A3CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A3CBA
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3CBA#FFFFFF#000000##FFFFFF
##7A3CBA1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#6D5976
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7a3cba;
/* rgb */ color: rgb(122, 60, 186);
/* oklch */ color: oklch(50.0% 0.190 302.6);
Tailwind
colors: {
  custom: {
    50: '#a576d0',
    500: '#7a3cba',
    950: '#000000',
  },
}
SCSS
$custom: #7a3cba;
$custom-light: #a576d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3cba",
  "rgb": {
    "r": 122,
    "g": 60,
    "b": 186
  },
  "hsl": {
    "h": 269.524,
    "s": 51.22,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50022,
    "c": 0.18963,
    "h": 302.6
  },
  "luminance": 0.10914
}

Semantic roles & 50–950 ramp

primary
#7A3CBA
secondary
#A9C88A
accent
#DB4D95
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7A3CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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