#7E4897#7E4897

#7E4897 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 49.9% C 0.133 H 314.1°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7E4897
RGBrgb(126, 72, 151)
HSLhsl(281, 35%, 44%)
HSVhsv(281, 52%, 59%)
CMYKcmyk(16.6%, 52.3%, 0%, 40.8%)
CIE-LABlab(40.09, 37.19, -34.28)
CIE-LCHlch(40.09, 50.58, 317.34°)
OKLaboklab(49.9% 0.0926 -0.0955)
OKLCHoklch(49.9% 0.133 314.1)
XYZxyz(16.5066, 11.3052, 30.5847)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4897 #619748
analogous
#564897 #7E4897 #974888
triadic
#7E4897 #977E48 #48977E
tetradic
#7E4897 #975648 #619748 #488897
square
#7E4897 #975648 #619748 #488897
split-complementary
#7E4897 #889748 #489756
monochromatic
#392044 #5B346E #7E4897 #9D66B6 #B790CA

Accessibility & contrast

On white

6.44
#7E4897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7E4897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4897
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4897#FFFFFF#000000##FFFFFF
##7E48971.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365B9A
Deuteranopia (green-blind)
#466095
Tritanopia (blue-blind)
#7C5468
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e4897;
/* rgb */ color: rgb(126, 72, 151);
/* oklch */ color: oklch(49.9% 0.133 314.1);
Tailwind
colors: {
  custom: {
    50: '#a57db6',
    500: '#7e4897',
    950: '#000000',
  },
}
SCSS
$custom: #7e4897;
$custom-light: #a57db6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4897",
  "rgb": {
    "r": 126,
    "g": 72,
    "b": 151
  },
  "hsl": {
    "h": 281.013,
    "s": 35.426,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49904,
    "c": 0.13304,
    "h": 314.1
  },
  "luminance": 0.11305
}

Semantic roles & 50–950 ramp

primary
#7E4897
secondary
#95B685
accent
#CB5C80
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7E4897

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

Preview Lab → · Contrast checker → · Palette generator →

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