#7A40BA#7A40BA

#7A40BA is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.5% C 0.184 H 302.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7A40BA
RGBrgb(122, 64, 186)
HSLhsl(269, 49%, 49%)
HSVhsv(269, 66%, 73%)
CMYKcmyk(34.4%, 65.6%, 0%, 27.1%)
CIE-LABlab(40.16, 48.83, -55.01)
CIE-LCHlch(40.16, 73.56, 311.59°)
OKLaboklab(50.54% 0.0977 -0.1563)
OKLCHoklch(50.54% 0.184 302)
XYZxyz(18.7203, 11.3495, 47.6493)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40BA #80BA40
analogous
#4043BA #7A40BA #B740BA
triadic
#7A40BA #BA7A40 #40BA7A
tetradic
#7A40BA #BA4043 #80BA40 #40BAB7
square
#7A40BA #BA4043 #80BA40 #40BAB7
split-complementary
#7A40BA #BAB740 #43BA40
monochromatic
#3E215F #5C308C #7A40BA #996BCC #B999DC

Accessibility & contrast

On white

6.42
#7A40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7A40BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40BA
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40BA#FFFFFF#000000##FFFFFF
##7A40BA1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#0C5EB7
Tritanopia (blue-blind)
#6D5B77
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7a40ba;
/* rgb */ color: rgb(122, 64, 186);
/* oklch */ color: oklch(50.5% 0.184 302.0);
Tailwind
colors: {
  custom: {
    50: '#a578cf',
    500: '#7a40ba',
    950: '#000000',
  },
}
SCSS
$custom: #7a40ba;
$custom-light: #a578cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40ba",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 268.525,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50544,
    "c": 0.18436,
    "h": 302
  },
  "luminance": 0.1135
}

Semantic roles & 50–950 ramp

primary
#7A40BA
secondary
#ACC88E
accent
#D84F97
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7A40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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