#7E4E7B#7E4E7B

#7E4E7B is a mid, moderate purple. Relative luminance 0.113; OKLCH L 49.5% C 0.091 H 329.1°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7E4E7B
RGBrgb(126, 78, 123)
HSLhsl(304, 24%, 40%)
HSVhsv(304, 38%, 49%)
CMYKcmyk(0%, 38.1%, 2.4%, 50.6%)
CIE-LABlab(40.11, 27.78, -17.21)
CIE-LCHlch(40.11, 32.68, 328.23°)
OKLaboklab(49.48% 0.0778 -0.0467)
OKLCHoklch(49.48% 0.091 329.1)
XYZxyz(14.9035, 11.3151, 20.1341)
Luminance0.1131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E7B #4E7E51
analogous
#694E7E #7E4E7B #7E4E63
triadic
#7E4E7B #7B7E4E #4E7B7E
tetradic
#7E4E7B #7E694E #4E7E51 #4E637E
square
#7E4E7B #7E694E #4E7E51 #4E637E
split-complementary
#7E4E7B #637E4E #4E7E69
monochromatic
#321F31 #583756 #7E4E7B #A1689E #B98EB6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E4E7B#FFFFFF#000000##FFFFFF
##7E4E7B1.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)
#4C5B7D
Deuteranopia (green-blind)
#586179
Tritanopia (blue-blind)
#81525F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e4e7b;
/* rgb */ color: rgb(126, 78, 123);
/* oklch */ color: oklch(49.5% 0.091 329.1);
Tailwind
colors: {
  custom: {
    50: '#a480a1',
    500: '#7e4e7b',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e7b;
$custom-light: #a480a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e7b",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 123
  },
  "hsl": {
    "h": 303.75,
    "s": 23.529,
    "l": 40
  },
  "oklch": {
    "l": 0.49481,
    "c": 0.09074,
    "h": 329.1
  },
  "luminance": 0.11314
}

Semantic roles & 50–950 ramp

primary
#7E4E7B
secondary
#82A684
accent
#C06D68
background
#FAF7F9
surface
#F4EEF2
border
#CEC9CC
text
#0F0A0F
muted
#7F7C7E

Preview Lab

Preview with #7E4E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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