#7D4EAC#7D4EAC

#7D4EAC is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.0% C 0.148 H 304.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7D4EAC
RGBrgb(125, 78, 172)
HSLhsl(270, 38%, 49%)
HSVhsv(270, 55%, 67%)
CMYKcmyk(27.3%, 54.7%, 0%, 32.5%)
CIE-LABlab(42.44, 38.52, -43.08)
CIE-LCHlch(42.44, 57.80, 311.80°)
OKLaboklab(52% 0.0846 -0.1213)
OKLCHoklch(52% 0.148 304.9)
XYZxyz(18.6266, 12.7874, 40.5087)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4EAC #7DAC4E
analogous
#4E4EAC #7D4EAC #AC4EAC
triadic
#7D4EAC #AC7D4E #4EAC7D
tetradic
#7D4EAC #AC4E4E #7DAC4E #4EACAC
square
#7D4EAC #AC4E4E #7DAC4E #4EACAC
split-complementary
#7D4EAC #ACAC4E #4EAC4E
monochromatic
#402858 #5E3B82 #7D4EAC #9C76C1 #BAA0D4

Accessibility & contrast

On white

5.90
#7D4EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7D4EAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4EAC
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4EAC#FFFFFF#000000##FFFFFF
##7D4EAC1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E63AF
Deuteranopia (green-blind)
#3D64AA
Tritanopia (blue-blind)
#756075
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d4eac;
/* rgb */ color: rgb(125, 78, 172);
/* oklch */ color: oklch(52.0% 0.148 304.9);
Tailwind
colors: {
  custom: {
    50: '#a581c5',
    500: '#7d4eac',
    950: '#000000',
  },
}
SCSS
$custom: #7d4eac;
$custom-light: #a581c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4eac",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 172
  },
  "hsl": {
    "h": 270,
    "s": 37.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51996,
    "c": 0.14785,
    "h": 304.9
  },
  "luminance": 0.12787
}

Semantic roles & 50–950 ramp

primary
#7D4EAC
secondary
#ABC195
accent
#CE5A94
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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