#7E1F63#7E1F63

#7E1F63 is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.8% C 0.149 H 341.7°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#7E1F63
RGBrgb(126, 31, 99)
HSLhsl(317, 61%, 31%)
HSVhsv(317, 75%, 49%)
CMYKcmyk(0%, 75.4%, 21.4%, 50.6%)
CIE-LABlab(30.20, 47.06, -17.35)
CIE-LCHlch(30.20, 50.15, 339.76°)
OKLaboklab(41.8% 0.1411 -0.0466)
OKLCHoklch(41.8% 0.149 341.7)
XYZxyz(11.3467, 6.3176, 12.4238)
Luminance0.0632 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F63 #1F7E3A
analogous
#691F7E #7E1F63 #7E1F33
triadic
#7E1F63 #637E1F #1F637E
tetradic
#7E1F63 #7E691F #1F7E3A #1F337E
square
#7E1F63 #7E691F #1F7E3A #1F337E
split-complementary
#7E1F63 #337E1F #1F7E69
monochromatic
#1C0716 #4D133C #7E1F63 #AF2B8A #D146AA

Accessibility & contrast

On white

9.28
#7E1F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E1F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F63
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F63#FFFFFF#000000##FFFFFF
##7E1F631.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273D65
Deuteranopia (green-blind)
#454D61
Tritanopia (blue-blind)
#86203E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1f63;
/* rgb */ color: rgb(126, 31, 99);
/* oklch */ color: oklch(41.8% 0.149 341.7);
Tailwind
colors: {
  custom: {
    50: '#a7648f',
    500: '#7e1f63',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f63;
$custom-light: #a7648f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f63",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 99
  },
  "hsl": {
    "h": 317.053,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41795,
    "c": 0.14859,
    "h": 341.7
  },
  "luminance": 0.06316
}

Semantic roles & 50–950 ramp

primary
#7E1F63
secondary
#48B166
accent
#E47144
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E1F63

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

Preview Lab → · Contrast checker → · Palette generator →

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