#7A40C4#7A40C4

#7A40C4 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.196 H 299.6°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7A40C4
RGBrgb(122, 64, 196)
HSLhsl(266, 53%, 51%)
HSVhsv(266, 67%, 77%)
CMYKcmyk(37.8%, 67.3%, 0%, 23.1%)
CIE-LABlab(40.88, 51.33, -59.70)
CIE-LCHlch(40.88, 78.73, 310.69°)
OKLaboklab(51.29% 0.0966 -0.1701)
OKLCHoklch(51.29% 0.196 299.6)
XYZxyz(19.8208, 11.7897, 53.4452)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40C4 #8AC440
analogous
#4048C4 #7A40C4 #BC40C4
triadic
#7A40C4 #C47A40 #40C47A
tetradic
#7A40C4 #C44048 #8AC440 #40C4BC
square
#7A40C4 #C44048 #8AC440 #40C4BC
split-complementary
#7A40C4 #C4BC40 #48C440
monochromatic
#402069 #5D2F98 #7A40C4 #9B6FD2 #BB9EE1

Accessibility & contrast

On white

6.25
#7A40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7A40C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40C4
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40C4#FFFFFF#000000##FFFFFF
##7A40C41.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#005FC1
Tritanopia (blue-blind)
#695F7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a40c4;
/* rgb */ color: rgb(122, 64, 196);
/* oklch */ color: oklch(51.3% 0.196 299.6);
Tailwind
colors: {
  custom: {
    50: '#a679d7',
    500: '#7a40c4',
    950: '#000000',
  },
}
SCSS
$custom: #7a40c4;
$custom-light: #a679d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40c4",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 266.364,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51286,
    "c": 0.19561,
    "h": 299.6
  },
  "luminance": 0.1179
}

Semantic roles & 50–950 ramp

primary
#7A40C4
secondary
#B3CD93
accent
#DC4C9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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