#7E4D95#7E4D95

#7E4D95 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 50.6% C 0.122 H 314.1°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7E4D95
RGBrgb(126, 77, 149)
HSLhsl(281, 32%, 44%)
HSVhsv(281, 48%, 58%)
CMYKcmyk(15.4%, 48.3%, 0%, 41.6%)
CIE-LABlab(41.08, 33.92, -31.51)
CIE-LCHlch(41.08, 46.30, 317.11°)
OKLaboklab(50.6% 0.085 -0.0875)
OKLCHoklch(50.6% 0.122 314.1)
XYZxyz(16.6820, 11.9137, 29.8487)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4D95 #64954D
analogous
#5A4D95 #7E4D95 #954D88
triadic
#7E4D95 #957E4D #4D957E
tetradic
#7E4D95 #955A4D #64954D #4D8895
square
#7E4D95 #955A4D #64954D #4D8895
split-complementary
#7E4D95 #88954D #4D955A
monochromatic
#3A2344 #5C386D #7E4D95 #9C6CB3 #B794C8

Accessibility & contrast

On white

6.21
#7E4D95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7E4D95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4D95
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4D95#FFFFFF#000000##FFFFFF
##7E4D951.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5E98
Deuteranopia (green-blind)
#4C6293
Tritanopia (blue-blind)
#7C586A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e4d95;
/* rgb */ color: rgb(126, 77, 149);
/* oklch */ color: oklch(50.6% 0.122 314.1);
Tailwind
colors: {
  custom: {
    50: '#a580b4',
    500: '#7e4d95',
    950: '#000000',
  },
}
SCSS
$custom: #7e4d95;
$custom-light: #a580b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4d95",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 149
  },
  "hsl": {
    "h": 280.833,
    "s": 31.858,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50604,
    "c": 0.12199,
    "h": 314.1
  },
  "luminance": 0.11913
}

Semantic roles & 50–950 ramp

primary
#7E4D95
secondary
#97B489
accent
#C86081
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7E4D95

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

Preview Lab → · Contrast checker → · Palette generator →

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