#7D4E87#7D4E87

#7D4E87 is a mid, moderate purple. Relative luminance 0.116; OKLCH L 49.9% C 0.103 H 320.4°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7D4E87
RGBrgb(125, 78, 135)
HSLhsl(289, 27%, 42%)
HSVhsv(289, 42%, 53%)
CMYKcmyk(7.4%, 42.2%, 0%, 47.1%)
CIE-LABlab(40.51, 29.93, -23.94)
CIE-LCHlch(40.51, 38.33, 321.35°)
OKLaboklab(49.93% 0.0796 -0.0658)
OKLCHoklch(49.93% 0.103 320.4)
XYZxyz(15.5545, 11.5585, 24.3286)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4E87 #58874E
analogous
#614E87 #7D4E87 #874E75
triadic
#7D4E87 #877D4E #4E877D
tetradic
#7D4E87 #87614E #58874E #4E7587
square
#7D4E87 #87614E #58874E #4E7587
split-complementary
#7D4E87 #75874E #4E8761
monochromatic
#352139 #593860 #7D4E87 #9E6AA9 #B790BF

Accessibility & contrast

On white

6.34
#7D4E87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7D4E87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4E87
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4E87#FFFFFF#000000##FFFFFF
##7D4E871.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465C89
Deuteranopia (green-blind)
#536185
Tritanopia (blue-blind)
#7E5564
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7d4e87;
/* rgb */ color: rgb(125, 78, 135);
/* oklch */ color: oklch(49.9% 0.103 320.4);
Tailwind
colors: {
  custom: {
    50: '#a481aa',
    500: '#7d4e87',
    950: '#000000',
  },
}
SCSS
$custom: #7d4e87;
$custom-light: #a481aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4e87",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 289.474,
    "s": 26.761,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49926,
    "c": 0.10322,
    "h": 320.4
  },
  "luminance": 0.11558
}

Semantic roles & 50–950 ramp

primary
#7D4E87
secondary
#8CAC85
accent
#C36575
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7D4E87

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

Preview Lab → · Contrast checker → · Palette generator →

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