#7E1940#7E1940

#7E1940 is a dark, vivid pink. Relative luminance 0.055; OKLCH L 39.8% C 0.138 H 3.0°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#7E1940
RGBrgb(126, 25, 64)
HSLhsl(337, 67%, 30%)
HSVhsv(337, 80%, 49%)
CMYKcmyk(0%, 80.2%, 49.2%, 50.6%)
CIE-LABlab(28.12, 44.90, 2.63)
CIE-LCHlch(28.12, 44.98, 3.35°)
OKLaboklab(39.83% 0.1377 0.0072)
OKLCHoklch(39.83% 0.138 3)
XYZxyz(9.8781, 5.5024, 5.3914)
Luminance0.0550 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1940 #197E57
analogous
#7E1972 #7E1940 #7E2519
triadic
#7E1940 #407E19 #19407E
tetradic
#7E1940 #727E19 #197E57 #25197E
square
#7E1940 #727E19 #197E57 #25197E
split-complementary
#7E1940 #197E25 #19727E
monochromatic
#1A050D #4B0F26 #7E1940 #B1235A #D83A77

Accessibility & contrast

On white

10.00
#7E1940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#7E1940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1940
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1940#FFFFFF#000000##FFFFFF
##7E19401.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323641
Deuteranopia (green-blind)
#4D493E
Tritanopia (blue-blind)
#89012A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1940;
/* rgb */ color: rgb(126, 25, 64);
/* oklch */ color: oklch(39.8% 0.138 3.0);
Tailwind
colors: {
  custom: {
    50: '#a86174',
    500: '#7e1940',
    950: '#000000',
  },
}
SCSS
$custom: #7e1940;
$custom-light: #a86174;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1940",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 64
  },
  "hsl": {
    "h": 336.832,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39834,
    "c": 0.13785,
    "h": 3
  },
  "luminance": 0.05501
}

Semantic roles & 50–950 ramp

primary
#7E1940
secondary
#41B286
accent
#EAA73E
background
#FAF6F7
surface
#F5EBED
border
#CFC6C8
text
#110508
muted
#807A7B

Preview Lab

Preview with #7E1940

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

Preview Lab → · Contrast checker → · Palette generator →

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