#7C40AF#7C40AF

#7C40AF is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.172 H 306.0°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#7C40AF
RGBrgb(124, 64, 175)
HSLhsl(272, 46%, 47%)
HSVhsv(272, 63%, 69%)
CMYKcmyk(29.1%, 63.4%, 0%, 31.4%)
CIE-LABlab(39.66, 46.59, -49.32)
CIE-LCHlch(39.66, 67.85, 313.37°)
OKLaboklab(50% 0.1013 -0.1396)
OKLCHoklch(50% 0.172 306)
XYZxyz(17.8818, 11.0472, 41.7394)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40AF #73AF40
analogous
#4440AF #7C40AF #AF40AB
triadic
#7C40AF #AF7C40 #40AF7C
tetradic
#7C40AF #AF4440 #73AF40 #40ABAF
square
#7C40AF #AF4440 #73AF40 #40ABAF
split-complementary
#7C40AF #ABAF40 #40AF44
monochromatic
#3C1F55 #5C3082 #7C40AF #9A65C7 #B792D7

Accessibility & contrast

On white

6.54
#7C40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7C40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40AF
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40AF#FFFFFF#000000##FFFFFF
##7C40AF1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#275EAC
Tritanopia (blue-blind)
#735771
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7c40af;
/* rgb */ color: rgb(124, 64, 175);
/* oklch */ color: oklch(50.0% 0.172 306.0);
Tailwind
colors: {
  custom: {
    50: '#a678c7',
    500: '#7c40af',
    950: '#000000',
  },
}
SCSS
$custom: #7c40af;
$custom-light: #a678c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40af",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 272.432,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49997,
    "c": 0.17242,
    "h": 306
  },
  "luminance": 0.11047
}

Semantic roles & 50–950 ramp

primary
#7C40AF
secondary
#A3C388
accent
#D6528F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7C40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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