#7E1138#7E1138

#7E1138 is a dark, vivid pink. Relative luminance 0.051; OKLCH L 39.0% C 0.143 H 6.8°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#7E1138
RGBrgb(126, 17, 56)
HSLhsl(339, 76%, 28%)
HSVhsv(339, 87%, 49%)
CMYKcmyk(0%, 86.5%, 55.6%, 50.6%)
CIE-LABlab(27.08, 46.49, 6.55)
CIE-LCHlch(27.08, 46.95, 8.02°)
OKLaboklab(39% 0.142 0.0169)
OKLCHoklch(39% 0.143 6.8)
XYZxyz(9.5194, 5.1234, 4.2283)
Luminance0.0512 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1138 #117E57
analogous
#7E116E #7E1138 #7E2011
triadic
#7E1138 #387E11 #11387E
tetradic
#7E1138 #6E7E11 #117E57 #20117E
square
#7E1138 #6E7E11 #117E57 #20117E
split-complementary
#7E1138 #117E20 #116E7E
monochromatic
#1B040C #480A20 #7E1138 #B41850 #E2276A

Accessibility & contrast

On white

10.37
#7E1138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#7E1138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1138
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1138#FFFFFF#000000##FFFFFF
##7E11381.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303239
Deuteranopia (green-blind)
#4C4835
Tritanopia (blue-blind)
#8A0023
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1138;
/* rgb */ color: rgb(126, 17, 56);
/* oklch */ color: oklch(39.0% 0.143 6.8);
Tailwind
colors: {
  custom: {
    50: '#a95e6e',
    500: '#7e1138',
    950: '#000000',
  },
}
SCSS
$custom: #7e1138;
$custom-light: #a95e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1138",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 338.532,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.38997,
    "c": 0.14295,
    "h": 6.8
  },
  "luminance": 0.05122
}

Semantic roles & 50–950 ramp

primary
#7E1138
secondary
#37B487
accent
#F3AF35
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110507
muted
#80797A

Preview Lab

Preview with #7E1138

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

Preview Lab → · Contrast checker → · Palette generator →

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