#7D4E97#7D4E97

#7D4E97 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.8% C 0.122 H 312.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7D4E97
RGBrgb(125, 78, 151)
HSLhsl(279, 32%, 45%)
HSVhsv(279, 48%, 59%)
CMYKcmyk(17.2%, 48.3%, 0%, 40.8%)
CIE-LABlab(41.29, 33.50, -32.40)
CIE-LCHlch(41.29, 46.60, 315.96°)
OKLaboklab(50.76% 0.0825 -0.0901)
OKLCHoklch(50.76% 0.122 312.5)
XYZxyz(16.7668, 12.0435, 30.7135)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4E97 #68974E
analogous
#584E97 #7D4E97 #974E8D
triadic
#7D4E97 #977D4E #4E977D
tetradic
#7D4E97 #97584E #68974E #4E8D97
square
#7D4E97 #97584E #68974E #4E8D97
split-complementary
#7D4E97 #8D974E #4E9758
monochromatic
#3A2446 #5C396F #7D4E97 #9B6EB4 #B796C9

Accessibility & contrast

On white

6.16
#7D4E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7D4E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4E97
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4E97#FFFFFF#000000##FFFFFF
##7D4E971.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5F9A
Deuteranopia (green-blind)
#4B6295
Tritanopia (blue-blind)
#7A596B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d4e97;
/* rgb */ color: rgb(125, 78, 151);
/* oklch */ color: oklch(50.8% 0.122 312.5);
Tailwind
colors: {
  custom: {
    50: '#a481b6',
    500: '#7d4e97',
    950: '#000000',
  },
}
SCSS
$custom: #7d4e97;
$custom-light: #a481b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4e97",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 278.63,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50764,
    "c": 0.12219,
    "h": 312.5
  },
  "luminance": 0.12043
}

Semantic roles & 50–950 ramp

primary
#7D4E97
secondary
#9AB68B
accent
#C86085
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7D4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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