#7A40C1#7A40C1

#7A40C1 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.192 H 300.3°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7A40C1
RGBrgb(122, 64, 193)
HSLhsl(267, 51%, 50%)
HSVhsv(267, 67%, 76%)
CMYKcmyk(36.8%, 66.8%, 0%, 24.3%)
CIE-LABlab(40.66, 50.58, -58.30)
CIE-LCHlch(40.66, 77.18, 310.94°)
OKLaboklab(51.06% 0.0969 -0.166)
OKLCHoklch(51.06% 0.192 300.3)
XYZxyz(19.4827, 11.6545, 51.6648)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40C1 #87C140
analogous
#4046C1 #7A40C1 #BB40C1
triadic
#7A40C1 #C17A40 #40C17A
tetradic
#7A40C1 #C14046 #87C140 #40C1BB
square
#7A40C1 #C14046 #87C140 #40C1BB
split-complementary
#7A40C1 #C1BB40 #46C140
monochromatic
#402166 #5D3094 #7A40C1 #9A6ED0 #BA9CDF

Accessibility & contrast

On white

6.30
#7A40C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7A40C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40C1
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40C1#FFFFFF#000000##FFFFFF
##7A40C11.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC5
Deuteranopia (green-blind)
#005FBE
Tritanopia (blue-blind)
#6A5E7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a40c1;
/* rgb */ color: rgb(122, 64, 193);
/* oklch */ color: oklch(51.1% 0.192 300.3);
Tailwind
colors: {
  custom: {
    50: '#a679d5',
    500: '#7a40c1',
    950: '#000000',
  },
}
SCSS
$custom: #7a40c1;
$custom-light: #a679d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40c1",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 266.977,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5106,
    "c": 0.19224,
    "h": 300.3
  },
  "luminance": 0.11655
}

Semantic roles & 50–950 ramp

primary
#7A40C1
secondary
#B1CB92
accent
#DA4D9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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