#7E1F4B#7E1F4B

#7E1F4B is a dark, vivid pink. Relative luminance 0.059; OKLCH L 40.8% C 0.135 H 356.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#7E1F4B
RGBrgb(126, 31, 75)
HSLhsl(332, 61%, 31%)
HSVhsv(332, 75%, 49%)
CMYKcmyk(0%, 75.4%, 40.5%, 50.6%)
CIE-LABlab(29.22, 43.96, -3.10)
CIE-LCHlch(29.22, 44.07, 355.96°)
OKLaboklab(40.76% 0.1349 -0.0076)
OKLCHoklch(40.76% 0.135 356.8)
XYZxyz(10.3649, 5.9249, 7.2530)
Luminance0.0592 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F4B #1F7E52
analogous
#7E1F7A #7E1F4B #7E231F
triadic
#7E1F4B #4B7E1F #1F4B7E
tetradic
#7E1F4B #7A7E1F #1F7E52 #231F7E
square
#7E1F4B #7A7E1F #1F7E52 #231F7E
split-complementary
#7E1F4B #1F7E23 #1F7A7E
monochromatic
#1C0711 #4D132E #7E1F4B #AF2B68 #D14687

Accessibility & contrast

On white

9.61
#7E1F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7E1F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F4B
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F4B#FFFFFF#000000##FFFFFF
##7E1F4B1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323A4C
Deuteranopia (green-blind)
#4C4B49
Tritanopia (blue-blind)
#891432
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1f4b;
/* rgb */ color: rgb(126, 31, 75);
/* oklch */ color: oklch(40.8% 0.135 356.8);
Tailwind
colors: {
  custom: {
    50: '#a8647d',
    500: '#7e1f4b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f4b;
$custom-light: #a8647d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f4b",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 75
  },
  "hsl": {
    "h": 332.211,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40761,
    "c": 0.1351,
    "h": 356.8
  },
  "luminance": 0.05924
}

Semantic roles & 50–950 ramp

primary
#7E1F4B
secondary
#48B180
accent
#E49A44
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7E1F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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