#7E4E8F#7E4E8F

#7E4E8F is a mid, moderate purple. Relative luminance 0.119; OKLCH L 50.5% C 0.113 H 316.8°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7E4E8F
RGBrgb(126, 78, 143)
HSLhsl(284, 29%, 43%)
HSVhsv(284, 45%, 56%)
CMYKcmyk(11.9%, 45.5%, 0%, 43.9%)
CIE-LABlab(41.01, 32.00, -28.00)
CIE-LCHlch(41.01, 42.52, 318.81°)
OKLaboklab(50.45% 0.0824 -0.0774)
OKLCHoklch(50.45% 0.113 316.8)
XYZxyz(16.2858, 11.8680, 27.4141)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E8F #5F8F4E
analogous
#5D4E8F #7E4E8F #8F4E7F
triadic
#7E4E8F #8F7E4E #4E8F7E
tetradic
#7E4E8F #8F5D4E #5F8F4E #4E7F8F
square
#7E4E8F #8F5D4E #5F8F4E #4E7F8F
split-complementary
#7E4E8F #7F8F4E #4E8F5D
monochromatic
#382340 #5B3867 #7E4E8F #9D6CAF #B793C4

Accessibility & contrast

On white

6.22
#7E4E8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7E4E8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4E8F
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4E8F#FFFFFF#000000##FFFFFF
##7E4E8F1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435E91
Deuteranopia (green-blind)
#50628D
Tritanopia (blue-blind)
#7E5768
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e4e8f;
/* rgb */ color: rgb(126, 78, 143);
/* oklch */ color: oklch(50.5% 0.113 316.8);
Tailwind
colors: {
  custom: {
    50: '#a581b0',
    500: '#7e4e8f',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e8f;
$custom-light: #a581b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e8f",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 143
  },
  "hsl": {
    "h": 284.308,
    "s": 29.412,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50452,
    "c": 0.11309,
    "h": 316.8
  },
  "luminance": 0.11868
}

Semantic roles & 50–950 ramp

primary
#7E4E8F
secondary
#93B188
accent
#C6627C
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7E4E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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