#7E428F#7E428F

#7E428F is a mid, vivid purple. Relative luminance 0.103; OKLCH L 48.5% C 0.134 H 318.4°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7E428F
RGBrgb(126, 66, 143)
HSLhsl(287, 37%, 41%)
HSVhsv(287, 54%, 56%)
CMYKcmyk(11.9%, 53.8%, 0%, 43.9%)
CIE-LABlab(38.40, 38.73, -32.09)
CIE-LCHlch(38.40, 50.30, 320.35°)
OKLaboklab(48.52% 0.1004 -0.0892)
OKLCHoklch(48.52% 0.134 318.4)
XYZxyz(15.5097, 10.3158, 27.1554)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E428F #538F42
analogous
#57428F #7E428F #8F4279
triadic
#7E428F #8F7E42 #428F7E
tetradic
#7E428F #8F5742 #538F42 #42798F
square
#7E428F #8F5742 #538F42 #42798F
split-complementary
#7E428F #798F42 #428F57
monochromatic
#341B3B #592F65 #7E428F #A05BB3 #B885C7

Accessibility & contrast

On white

6.86
#7E428F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7E428F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E428F
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E428F#FFFFFF#000000##FFFFFF
##7E428F1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335692
Deuteranopia (green-blind)
#465C8D
Tritanopia (blue-blind)
#7E4D62
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e428f;
/* rgb */ color: rgb(126, 66, 143);
/* oklch */ color: oklch(48.5% 0.134 318.4);
Tailwind
colors: {
  custom: {
    50: '#a579b0',
    500: '#7e428f',
    950: '#000000',
  },
}
SCSS
$custom: #7e428f;
$custom-light: #a579b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e428f",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 143
  },
  "hsl": {
    "h": 286.753,
    "s": 36.842,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4852,
    "c": 0.13426,
    "h": 318.4
  },
  "luminance": 0.10315
}

Semantic roles & 50–950 ramp

primary
#7E428F
secondary
#87B17B
accent
#CD5B74
background
#FAF7FA
surface
#F4EDF5
border
#CEC8CF
text
#0F0910
muted
#7F7B7F

Preview Lab

Preview with #7E428F

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

Preview Lab → · Contrast checker → · Palette generator →

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