#7E40AA#7E40AA

#7E40AA is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.9% C 0.167 H 308.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7E40AA
RGBrgb(126, 64, 170)
HSLhsl(275, 45%, 46%)
HSVhsv(275, 62%, 67%)
CMYKcmyk(25.9%, 62.4%, 0%, 33.3%)
CIE-LABlab(39.59, 45.88, -46.45)
CIE-LCHlch(39.59, 65.29, 314.64°)
OKLaboklab(49.9% 0.1041 -0.1311)
OKLCHoklch(49.9% 0.167 308.5)
XYZxyz(17.6918, 11.0050, 39.2146)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40AA #6CAA40
analogous
#4940AA #7E40AA #AA40A1
triadic
#7E40AA #AA7E40 #40AA7E
tetradic
#7E40AA #AA4940 #6CAA40 #40A1AA
square
#7E40AA #AA4940 #6CAA40 #40A1AA
split-complementary
#7E40AA #A1AA40 #40AA49
monochromatic
#3C1F51 #5D2F7E #7E40AA #9C63C4 #B88FD5

Accessibility & contrast

On white

6.56
#7E40AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7E40AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E40AA
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E40AA#FFFFFF#000000##FFFFFF
##7E40AA1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5BAD
Deuteranopia (green-blind)
#305EA8
Tritanopia (blue-blind)
#78556F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e40aa;
/* rgb */ color: rgb(126, 64, 170);
/* oklch */ color: oklch(49.9% 0.167 308.5);
Tailwind
colors: {
  custom: {
    50: '#a778c4',
    500: '#7e40aa',
    950: '#000000',
  },
}
SCSS
$custom: #7e40aa;
$custom-light: #a778c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40aa",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 275.094,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49897,
    "c": 0.1674,
    "h": 308.5
  },
  "luminance": 0.11005
}

Semantic roles & 50–950 ramp

primary
#7E40AA
secondary
#9EC086
accent
#D55389
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7E40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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