#7E5170#7E5170

#7E5170 is a mid, moderate pink. Relative luminance 0.115; OKLCH L 49.6% C 0.074 H 339.0°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7E5170
RGBrgb(126, 81, 112)
HSLhsl(319, 22%, 41%)
HSVhsv(319, 36%, 49%)
CMYKcmyk(0%, 35.7%, 11.1%, 50.6%)
CIE-LABlab(40.40, 23.90, -10.00)
CIE-LCHlch(40.40, 25.91, 337.30°)
OKLaboklab(49.56% 0.0694 -0.0266)
OKLCHoklch(49.56% 0.074 339)
XYZxyz(14.4712, 11.4911, 16.7818)
Luminance0.1149 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5170 #517E5F
analogous
#75517E #7E5170 #7E5159
triadic
#7E5170 #707E51 #51707E
tetradic
#7E5170 #7E7551 #517E5F #51597E
square
#7E5170 #7E7551 #517E5F #51597E
split-complementary
#7E5170 #597E51 #517E75
monochromatic
#33212E #59394F #7E5170 #A06C90 #B891AC

Accessibility & contrast

On white

6.37
#7E5170 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7E5170 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5170
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5170#FFFFFF#000000##FFFFFF
##7E51701.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525B71
Deuteranopia (green-blind)
#5D626F
Tritanopia (blue-blind)
#83525C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e5170;
/* rgb */ color: rgb(126, 81, 112);
/* oklch */ color: oklch(49.6% 0.074 339.0);
Tailwind
colors: {
  custom: {
    50: '#a48299',
    500: '#7e5170',
    950: '#000000',
  },
}
SCSS
$custom: #7e5170;
$custom-light: #a48299;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5170",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 112
  },
  "hsl": {
    "h": 318.667,
    "s": 21.739,
    "l": 40.588
  },
  "oklch": {
    "l": 0.49559,
    "c": 0.07433,
    "h": 339
  },
  "luminance": 0.1149
}

Semantic roles & 50–950 ramp

primary
#7E5170
secondary
#85A58F
accent
#BE846A
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#0F0A0D
muted
#7F7C7E

Preview Lab

Preview with #7E5170

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

Preview Lab → · Contrast checker → · Palette generator →

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