#7E4B97#7E4B97

#7E4B97 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 50.4% C 0.128 H 313.6°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#7E4B97
RGBrgb(126, 75, 151)
HSLhsl(280, 34%, 44%)
HSVhsv(280, 50%, 59%)
CMYKcmyk(16.6%, 50.3%, 0%, 40.8%)
CIE-LABlab(40.74, 35.51, -33.25)
CIE-LCHlch(40.74, 48.65, 316.88°)
OKLaboklab(50.39% 0.0882 -0.0926)
OKLCHoklch(50.39% 0.128 313.6)
XYZxyz(16.7052, 11.7026, 30.6510)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4B97 #64974B
analogous
#584B97 #7E4B97 #974B8A
triadic
#7E4B97 #977E4B #4B977E
tetradic
#7E4B97 #97584B #64974B #4B8A97
square
#7E4B97 #97584B #64974B #4B8A97
split-complementary
#7E4B97 #8A974B #4B9758
monochromatic
#3A2245 #5C376E #7E4B97 #9C6AB5 #B793C9

Accessibility & contrast

On white

6.29
#7E4B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7E4B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4B97
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4B97#FFFFFF#000000##FFFFFF
##7E4B971.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5D9A
Deuteranopia (green-blind)
#496195
Tritanopia (blue-blind)
#7C576A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e4b97;
/* rgb */ color: rgb(126, 75, 151);
/* oklch */ color: oklch(50.4% 0.128 313.6);
Tailwind
colors: {
  custom: {
    50: '#a57fb6',
    500: '#7e4b97',
    950: '#000000',
  },
}
SCSS
$custom: #7e4b97;
$custom-light: #a57fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4b97",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 151
  },
  "hsl": {
    "h": 280.263,
    "s": 33.628,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50385,
    "c": 0.12787,
    "h": 313.6
  },
  "luminance": 0.11702
}

Semantic roles & 50–950 ramp

primary
#7E4B97
secondary
#97B688
accent
#CA5E81
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7E4B97

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

Preview Lab → · Contrast checker → · Palette generator →

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