#7E316C#7E316C

#7E316C is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.3% C 0.129 H 337.7°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7E316C
RGBrgb(126, 49, 108)
HSLhsl(314, 44%, 34%)
HSVhsv(314, 61%, 49%)
CMYKcmyk(0%, 61.1%, 14.3%, 50.6%)
CIE-LABlab(33.38, 40.79, -18.19)
CIE-LCHlch(33.38, 44.66, 335.96°)
OKLaboklab(44.26% 0.1197 -0.0492)
OKLCHoklch(44.26% 0.129 337.7)
XYZxyz(12.4094, 7.7160, 15.0202)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E316C #317E43
analogous
#6A317E #7E316C #7E3146
triadic
#7E316C #6C7E31 #316C7E
tetradic
#7E316C #7E6A31 #317E43 #31467E
square
#7E316C #7E6A31 #317E43 #31467E
split-complementary
#7E316C #467E31 #317E6A
monochromatic
#260F20 #522046 #7E316C #AA4292 #C366AE

Accessibility & contrast

On white

8.26
#7E316C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E316C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E316C
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E316C#FFFFFF#000000##FFFFFF
##7E316C1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33476E
Deuteranopia (green-blind)
#4A536A
Tritanopia (blue-blind)
#85344A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e316c;
/* rgb */ color: rgb(126, 49, 108);
/* oklch */ color: oklch(44.3% 0.129 337.7);
Tailwind
colors: {
  custom: {
    50: '#a66e96',
    500: '#7e316c',
    950: '#000000',
  },
}
SCSS
$custom: #7e316c;
$custom-light: #a66e96;
$custom-dark: #000000;
JSON
{
  "hex": "#7e316c",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 108
  },
  "hsl": {
    "h": 314.026,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44257,
    "c": 0.12944,
    "h": 337.7
  },
  "luminance": 0.07715
}

Semantic roles & 50–950 ramp

primary
#7E316C
secondary
#60AB71
accent
#D47254
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7E316C

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

Preview Lab → · Contrast checker → · Palette generator →

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