#7E40AF#7E40AF

#7E40AF is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.2% C 0.173 H 306.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#7E40AF
RGBrgb(126, 64, 175)
HSLhsl(274, 46%, 47%)
HSVhsv(274, 63%, 69%)
CMYKcmyk(28%, 63.4%, 0%, 31.4%)
CIE-LABlab(39.91, 47.05, -48.90)
CIE-LCHlch(39.91, 67.86, 313.90°)
OKLaboklab(50.23% 0.1039 -0.1383)
OKLCHoklch(50.23% 0.173 306.9)
XYZxyz(18.1738, 11.1978, 41.7531)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40AF #71AF40
analogous
#4740AF #7E40AF #AF40A9
triadic
#7E40AF #AF7E40 #40AF7E
tetradic
#7E40AF #AF4740 #71AF40 #40A9AF
square
#7E40AF #AF4740 #71AF40 #40A9AF
split-complementary
#7E40AF #A9AF40 #40AF47
monochromatic
#3D1F55 #5E3082 #7E40AF #9C65C7 #B992D7

Accessibility & contrast

On white

6.48
#7E40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7E40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E40AF
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E40AF#FFFFFF#000000##FFFFFF
##7E40AF1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#2A5FAC
Tritanopia (blue-blind)
#765772
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e40af;
/* rgb */ color: rgb(126, 64, 175);
/* oklch */ color: oklch(50.2% 0.173 306.9);
Tailwind
colors: {
  custom: {
    50: '#a778c7',
    500: '#7e40af',
    950: '#000000',
  },
}
SCSS
$custom: #7e40af;
$custom-light: #a778c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40af",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 273.514,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50234,
    "c": 0.17297,
    "h": 306.9
  },
  "luminance": 0.11198
}

Semantic roles & 50–950 ramp

primary
#7E40AF
secondary
#A2C388
accent
#D6528C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7E40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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