#7E4AC7#7E4AC7

#7E4AC7 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.3% C 0.186 H 299.1°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#7E4AC7
RGBrgb(126, 74, 199)
HSLhsl(265, 53%, 54%)
HSVhsv(265, 63%, 78%)
CMYKcmyk(36.7%, 62.8%, 0%, 22%)
CIE-LABlab(43.44, 47.76, -57.27)
CIE-LCHlch(43.44, 74.57, 309.83°)
OKLaboklab(53.3% 0.0906 -0.1629)
OKLCHoklch(53.3% 0.186 299.1)
XYZxyz(21.3592, 13.4565, 55.4938)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4AC7 #93C74A
analogous
#4A54C7 #7E4AC7 #BC4AC7
triadic
#7E4AC7 #C77E4A #4AC77E
tetradic
#7E4AC7 #C74A54 #93C74A #4AC7BC
square
#7E4AC7 #C74A54 #93C74A #4AC7BC
split-complementary
#7E4AC7 #C7BC4A #54C74A
monochromatic
#452473 #6132A2 #7E4AC7 #9F79D5 #C1A7E4

Accessibility & contrast

On white

5.69
#7E4AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#7E4AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4AC7
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4AC7#FFFFFF#000000##FFFFFF
##7E4AC71.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#1066C4
Tritanopia (blue-blind)
#6E6682
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4ac7;
/* rgb */ color: rgb(126, 74, 199);
/* oklch */ color: oklch(53.3% 0.186 299.1);
Tailwind
colors: {
  custom: {
    50: '#a87fd9',
    500: '#7e4ac7',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ac7;
$custom-light: #a87fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ac7",
  "rgb": {
    "r": 126,
    "g": 74,
    "b": 199
  },
  "hsl": {
    "h": 264.96,
    "s": 52.743,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53304,
    "c": 0.18639,
    "h": 299.1
  },
  "luminance": 0.13457
}

Semantic roles & 50–950 ramp

primary
#7E4AC7
secondary
#BBD19C
accent
#DC4CA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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