#7940AF#7940AF

#7940AF is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.6% C 0.172 H 304.5°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#7940AF
RGBrgb(121, 64, 175)
HSLhsl(271, 46%, 47%)
HSVhsv(271, 63%, 69%)
CMYKcmyk(30.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(39.29, 45.89, -49.94)
CIE-LCHlch(39.29, 67.83, 312.58°)
OKLaboklab(49.65% 0.0972 -0.1415)
OKLCHoklch(49.65% 0.172 304.5)
XYZxyz(17.4547, 10.8270, 41.7194)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7940AF #76AF40
analogous
#4240AF #7940AF #AF40AE
triadic
#7940AF #AF7940 #40AF79
tetradic
#7940AF #AF4240 #76AF40 #40AEAF
square
#7940AF #AF4240 #76AF40 #40AEAF
split-complementary
#7940AF #AEAF40 #40AF42
monochromatic
#3B1F55 #5A3082 #7940AF #9765C7 #B692D7

Accessibility & contrast

On white

6.63
#7940AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7940AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7940AF
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7940AF#FFFFFF#000000##FFFFFF
##7940AF1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#235DAD
Tritanopia (blue-blind)
#6F5771
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7940af;
/* rgb */ color: rgb(121, 64, 175);
/* oklch */ color: oklch(49.6% 0.172 304.5);
Tailwind
colors: {
  custom: {
    50: '#a478c7',
    500: '#7940af',
    950: '#000000',
  },
}
SCSS
$custom: #7940af;
$custom-light: #a478c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7940af",
  "rgb": {
    "r": 121,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 270.811,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49646,
    "c": 0.17165,
    "h": 304.5
  },
  "luminance": 0.10827
}

Semantic roles & 50–950 ramp

primary
#7940AF
secondary
#A5C388
accent
#D65292
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7940AF

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

Preview Lab → · Contrast checker → · Palette generator →

#7940AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva