#7D4EAA#7D4EAA

#7D4EAA is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.9% C 0.145 H 305.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7D4EAA
RGBrgb(125, 78, 170)
HSLhsl(271, 37%, 49%)
HSVhsv(271, 54%, 67%)
CMYKcmyk(26.5%, 54.1%, 0%, 33.3%)
CIE-LABlab(42.32, 38.03, -42.09)
CIE-LCHlch(42.32, 56.72, 312.10°)
OKLaboklab(51.87% 0.0845 -0.1184)
OKLCHoklch(51.87% 0.145 305.5)
XYZxyz(18.4360, 12.7112, 39.5047)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4EAA #7BAA4E
analogous
#4F4EAA #7D4EAA #AA4EA9
triadic
#7D4EAA #AA7D4E #4EAA7D
tetradic
#7D4EAA #AA4F4E #7BAA4E #4EA9AA
square
#7D4EAA #AA4F4E #7BAA4E #4EA9AA
split-complementary
#7D4EAA #A9AA4E #4EAA4F
monochromatic
#3F2856 #5E3B80 #7D4EAA #9B75C0 #BA9FD3

Accessibility & contrast

On white

5.93
#7D4EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7D4EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4EAA
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4EAA#FFFFFF#000000##FFFFFF
##7D4EAA1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3062AD
Deuteranopia (green-blind)
#3F64A8
Tritanopia (blue-blind)
#765F74
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d4eaa;
/* rgb */ color: rgb(125, 78, 170);
/* oklch */ color: oklch(51.9% 0.145 305.5);
Tailwind
colors: {
  custom: {
    50: '#a581c4',
    500: '#7d4eaa',
    950: '#000000',
  },
}
SCSS
$custom: #7d4eaa;
$custom-light: #a581c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4eaa",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 170
  },
  "hsl": {
    "h": 270.652,
    "s": 37.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51873,
    "c": 0.14541,
    "h": 305.5
  },
  "luminance": 0.12711
}

Semantic roles & 50–950 ramp

primary
#7D4EAA
secondary
#A9C094
accent
#CD5B93
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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