#7E4072#7E4072

#7E4072 is a mid, moderate pink. Relative luminance 0.093; OKLCH L 46.7% C 0.108 H 334.9°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7E4072
RGBrgb(126, 64, 114)
HSLhsl(312, 33%, 37%)
HSVhsv(312, 49%, 49%)
CMYKcmyk(0%, 49.2%, 9.5%, 50.6%)
CIE-LABlab(36.59, 34.03, -17.03)
CIE-LCHlch(36.59, 38.06, 333.41°)
OKLaboklab(46.72% 0.0982 -0.046)
OKLCHoklch(46.72% 0.108 334.9)
XYZxyz(13.4748, 9.3182, 17.0052)
Luminance0.0932 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4072 #407E4C
analogous
#6B407E #7E4072 #7E4053
triadic
#7E4072 #727E40 #40727E
tetradic
#7E4072 #7E6B40 #407E4C #40537E
square
#7E4072 #7E6B40 #407E4C #40537E
split-complementary
#7E4072 #537E40 #407E6B
monochromatic
#2D1729 #552B4D #7E4072 #A75597 #BC7CB0

Accessibility & contrast

On white

7.33
#7E4072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7E4072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E4072
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4072#FFFFFF#000000##FFFFFF
##7E40721.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405074
Deuteranopia (green-blind)
#515970
Tritanopia (blue-blind)
#834353
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e4072;
/* rgb */ color: rgb(126, 64, 114);
/* oklch */ color: oklch(46.7% 0.108 334.9);
Tailwind
colors: {
  custom: {
    50: '#a5779a',
    500: '#7e4072',
    950: '#000000',
  },
}
SCSS
$custom: #7e4072;
$custom-light: #a5779a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4072",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 114
  },
  "hsl": {
    "h": 311.613,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46719,
    "c": 0.10848,
    "h": 334.9
  },
  "luminance": 0.09317
}

Semantic roles & 50–950 ramp

primary
#7E4072
secondary
#73A77D
accent
#C9735F
background
#FAF7F9
surface
#F4EDF2
border
#CEC8CC
text
#0F090E
muted
#7F7B7E

Preview Lab

Preview with #7E4072

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

Preview Lab → · Contrast checker → · Palette generator →

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