#7E407C#7E407C

#7E407C is a mid, moderate purple. Relative luminance 0.096; OKLCH L 47.2% C 0.118 H 328.4°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7E407C
RGBrgb(126, 64, 124)
HSLhsl(302, 33%, 37%)
HSVhsv(302, 49%, 49%)
CMYKcmyk(0%, 49.2%, 1.6%, 50.6%)
CIE-LABlab(37.04, 35.92, -22.56)
CIE-LCHlch(37.04, 42.42, 327.87°)
OKLaboklab(47.2% 0.1005 -0.0617)
OKLCHoklch(47.2% 0.118 328.4)
XYZxyz(14.0755, 9.5584, 20.1684)
Luminance0.0956 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E407C #407E42
analogous
#61407E #7E407C #7E405D
triadic
#7E407C #7C7E40 #407C7E
tetradic
#7E407C #7E6140 #407E42 #405D7E
square
#7E407C #7E6140 #407E42 #405D7E
split-complementary
#7E407C #5D7E40 #407E61
monochromatic
#2D172C #552B54 #7E407C #A755A4 #BC7CBA

Accessibility & contrast

On white

7.21
#7E407C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7E407C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E407C
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E407C#FFFFFF#000000##FFFFFF
##7E407C1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B527E
Deuteranopia (green-blind)
#4D5A7A
Tritanopia (blue-blind)
#824658
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e407c;
/* rgb */ color: rgb(126, 64, 124);
/* oklch */ color: oklch(47.2% 0.118 328.4);
Tailwind
colors: {
  custom: {
    50: '#a577a2',
    500: '#7e407c',
    950: '#000000',
  },
}
SCSS
$custom: #7e407c;
$custom-light: #a577a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e407c",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 301.935,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47199,
    "c": 0.11791,
    "h": 328.4
  },
  "luminance": 0.09558
}

Semantic roles & 50–950 ramp

primary
#7E407C
secondary
#73A775
accent
#C9625F
background
#FAF7FA
surface
#F4EDF3
border
#CEC8CD
text
#0F090F
muted
#7F7B7F

Preview Lab

Preview with #7E407C

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

Preview Lab → · Contrast checker → · Palette generator →

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