#7A40C5#7A40C5

#7A40C5 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.4% C 0.197 H 299.3°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7A40C5
RGBrgb(122, 64, 197)
HSLhsl(266, 53%, 51%)
HSVhsv(266, 68%, 77%)
CMYKcmyk(38.1%, 67.5%, 0%, 22.7%)
CIE-LABlab(40.95, 51.58, -60.16)
CIE-LCHlch(40.95, 79.25, 310.61°)
OKLaboklab(51.36% 0.0964 -0.1715)
OKLCHoklch(51.36% 0.197 299.3)
XYZxyz(19.9350, 11.8354, 54.0467)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40C5 #8BC540
analogous
#4048C5 #7A40C5 #BC40C5
triadic
#7A40C5 #C57A40 #40C57A
tetradic
#7A40C5 #C54048 #8BC540 #40C5BC
square
#7A40C5 #C54048 #8BC540 #40C5BC
split-complementary
#7A40C5 #C5BC40 #48C540
monochromatic
#41206A #5D2F99 #7A40C5 #9B6FD3 #BB9EE2

Accessibility & contrast

On white

6.24
#7A40C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7A40C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40C5
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40C5#FFFFFF#000000##FFFFFF
##7A40C51.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C9
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#695F7D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7a40c5;
/* rgb */ color: rgb(122, 64, 197);
/* oklch */ color: oklch(51.4% 0.197 299.3);
Tailwind
colors: {
  custom: {
    50: '#a679d7',
    500: '#7a40c5',
    950: '#000000',
  },
}
SCSS
$custom: #7a40c5;
$custom-light: #a679d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40c5",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 266.165,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51361,
    "c": 0.19672,
    "h": 299.3
  },
  "luminance": 0.11836
}

Semantic roles & 50–950 ramp

primary
#7A40C5
secondary
#B4CE93
accent
#DD4B9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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