#7E3771#7E3771

#7E3771 is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.3% C 0.124 H 335.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7E3771
RGBrgb(126, 55, 113)
HSLhsl(311, 39%, 35%)
HSVhsv(311, 56%, 49%)
CMYKcmyk(0%, 56.3%, 10.3%, 50.6%)
CIE-LABlab(34.72, 38.65, -19.28)
CIE-LCHlch(34.72, 43.20, 333.49°)
OKLaboklab(45.32% 0.112 -0.0523)
OKLCHoklch(45.32% 0.124 335)
XYZxyz(12.9511, 8.3612, 16.5513)
Luminance0.0836 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3771 #377E44
analogous
#67377E #7E3771 #7E374D
triadic
#7E3771 #717E37 #37717E
tetradic
#7E3771 #7E6737 #377E44 #374D7E
square
#7E3771 #7E6737 #377E44 #374D7E
split-complementary
#7E3771 #4D7E37 #377E67
monochromatic
#291225 #53244B #7E3771 #A94A97 #C06FB1

Accessibility & contrast

On white

7.86
#7E3771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E3771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3771
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3771#FFFFFF#000000##FFFFFF
##7E37711.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374B73
Deuteranopia (green-blind)
#4C566F
Tritanopia (blue-blind)
#843B4F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e3771;
/* rgb */ color: rgb(126, 55, 113);
/* oklch */ color: oklch(45.3% 0.124 335.0);
Tailwind
colors: {
  custom: {
    50: '#a5719a',
    500: '#7e3771',
    950: '#000000',
  },
}
SCSS
$custom: #7e3771;
$custom-light: #a5719a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3771",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 113
  },
  "hsl": {
    "h": 310.986,
    "s": 39.227,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45319,
    "c": 0.12357,
    "h": 335
  },
  "luminance": 0.0836
}

Semantic roles & 50–950 ramp

primary
#7E3771
secondary
#68A974
accent
#CF6E59
background
#FAF7F9
surface
#F4EDF2
border
#CEC8CC
text
#10080E
muted
#7F7B7E

Preview Lab

Preview with #7E3771

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

Preview Lab → · Contrast checker → · Palette generator →

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