#7A40AF#7A40AF

#7A40AF is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.8% C 0.172 H 305.0°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7A40AF
RGBrgb(122, 64, 175)
HSLhsl(271, 46%, 47%)
HSVhsv(271, 63%, 69%)
CMYKcmyk(30.3%, 63.4%, 0%, 31.4%)
CIE-LABlab(39.41, 46.13, -49.73)
CIE-LCHlch(39.41, 67.83, 312.84°)
OKLaboklab(49.76% 0.0986 -0.1408)
OKLCHoklch(49.76% 0.172 305)
XYZxyz(17.5956, 10.8996, 41.7260)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A40AF #75AF40
analogous
#4240AF #7A40AF #AF40AD
triadic
#7A40AF #AF7A40 #40AF7A
tetradic
#7A40AF #AF4240 #75AF40 #40ADAF
square
#7A40AF #AF4240 #75AF40 #40ADAF
split-complementary
#7A40AF #ADAF40 #40AF42
monochromatic
#3C1F55 #5B3082 #7A40AF #9865C7 #B692D7

Accessibility & contrast

On white

6.60
#7A40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7A40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A40AF
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A40AF#FFFFFF#000000##FFFFFF
##7A40AF1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#245DAD
Tritanopia (blue-blind)
#715771
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7a40af;
/* rgb */ color: rgb(122, 64, 175);
/* oklch */ color: oklch(49.8% 0.172 305.0);
Tailwind
colors: {
  custom: {
    50: '#a478c7',
    500: '#7a40af',
    950: '#000000',
  },
}
SCSS
$custom: #7a40af;
$custom-light: #a478c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a40af",
  "rgb": {
    "r": 122,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 271.351,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49762,
    "c": 0.1719,
    "h": 305
  },
  "luminance": 0.109
}

Semantic roles & 50–950 ramp

primary
#7A40AF
secondary
#A4C388
accent
#D65291
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7A40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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