#7A40C0#7A40C0

#7A40C0 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.0% C 0.191 H 300.5°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7A40C0
RGBrgb(122, 64, 192)
HSLhsl(267, 50%, 50%)
HSVhsv(267, 67%, 75%)
CMYKcmyk(36.5%, 66.7%, 0%, 24.7%)
CIE-LABlab(40.59, 50.33, -57.83)
CIE-LCHlch(40.59, 76.67, 311.03°)
OKLaboklab(50.99% 0.0971 -0.1646)
OKLCHoklch(50.99% 0.191 300.5)
XYZxyz(19.3715, 11.6100, 51.0793)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40C0 #86C040
analogous
#4046C0 #7A40C0 #BA40C0
triadic
#7A40C0 #C07A40 #40C07A
tetradic
#7A40C0 #C04046 #86C040 #40C0BA
square
#7A40C0 #C04046 #86C040 #40C0BA
split-complementary
#7A40C0 #C0BA40 #46C040
monochromatic
#402164 #5D3092 #7A40C0 #9A6ECF #BA9CDE

Accessibility & contrast

On white

6.32
#7A40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7A40C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40C0
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40C0#FFFFFF#000000##FFFFFF
##7A40C01.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC4
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#6B5D7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a40c0;
/* rgb */ color: rgb(122, 64, 192);
/* oklch */ color: oklch(51.0% 0.191 300.5);
Tailwind
colors: {
  custom: {
    50: '#a679d4',
    500: '#7a40c0',
    950: '#000000',
  },
}
SCSS
$custom: #7a40c0;
$custom-light: #a679d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40c0",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 267.188,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50986,
    "c": 0.19112,
    "h": 300.5
  },
  "luminance": 0.1161
}

Semantic roles & 50–950 ramp

primary
#7A40C0
secondary
#B1CB91
accent
#DA4E9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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