#7E4E8D#7E4E8D

#7E4E8D is a mid, moderate purple. Relative luminance 0.118; OKLCH L 50.3% C 0.111 H 317.8°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7E4E8D
RGBrgb(126, 78, 141)
HSLhsl(286, 29%, 43%)
HSVhsv(286, 45%, 55%)
CMYKcmyk(10.6%, 44.7%, 0%, 44.7%)
CIE-LABlab(40.91, 31.56, -26.94)
CIE-LCHlch(40.91, 41.49, 319.51°)
OKLaboklab(50.35% 0.0821 -0.0744)
OKLCHoklch(50.35% 0.111 317.8)
XYZxyz(16.1356, 11.8080, 26.6233)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E8D #5D8D4E
analogous
#5E4E8D #7E4E8D #8D4E7C
triadic
#7E4E8D #8D7E4E #4E8D7E
tetradic
#7E4E8D #8D5E4E #5D8D4E #4E7C8D
square
#7E4E8D #8D5E4E #5D8D4E #4E7C8D
split-complementary
#7E4E8D #7C8D4E #4E8D5E
monochromatic
#38223E #5B3866 #7E4E8D #9D6BAD #B792C3

Accessibility & contrast

On white

6.25
#7E4E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7E4E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4E8D
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4E8D#FFFFFF#000000##FFFFFF
##7E4E8D1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445D8F
Deuteranopia (green-blind)
#51628B
Tritanopia (blue-blind)
#7E5667
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e4e8d;
/* rgb */ color: rgb(126, 78, 141);
/* oklch */ color: oklch(50.3% 0.111 317.8);
Tailwind
colors: {
  custom: {
    50: '#a581ae',
    500: '#7e4e8d',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e8d;
$custom-light: #a581ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e8d",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 141
  },
  "hsl": {
    "h": 285.714,
    "s": 28.767,
    "l": 42.941
  },
  "oklch": {
    "l": 0.50348,
    "c": 0.11075,
    "h": 317.8
  },
  "luminance": 0.11807
}

Semantic roles & 50–950 ramp

primary
#7E4E8D
secondary
#91AF87
accent
#C5637A
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7E4E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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