#7E1152#7E1152

#7E1152 is a dark, vivid pink. Relative luminance 0.054; OKLCH L 39.9% C 0.153 H 350.6°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#7E1152
RGBrgb(126, 17, 82)
HSLhsl(324, 76%, 28%)
HSVhsv(324, 87%, 49%)
CMYKcmyk(0%, 86.5%, 34.9%, 50.6%)
CIE-LABlab(27.97, 49.06, -9.62)
CIE-LCHlch(27.97, 50.00, 348.90°)
OKLaboklab(39.93% 0.1506 -0.0251)
OKLCHoklch(39.93% 0.153 350.6)
XYZxyz(10.3283, 5.4470, 8.4885)
Luminance0.0545 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1152 #117E3D
analogous
#73117E #7E1152 #7E111B
triadic
#7E1152 #527E11 #11527E
tetradic
#7E1152 #7E7311 #117E3D #111B7E
square
#7E1152 #7E7311 #117E3D #111B7E
split-complementary
#7E1152 #1B7E11 #117E73
monochromatic
#1B0412 #480A2F #7E1152 #B41875 #E22797

Accessibility & contrast

On white

10.05
#7E1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#7E1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1152
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1152#FFFFFF#000000##FFFFFF
##7E11521.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273654
Deuteranopia (green-blind)
#474950
Tritanopia (blue-blind)
#880431
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1152;
/* rgb */ color: rgb(126, 17, 82);
/* oklch */ color: oklch(39.9% 0.153 350.6);
Tailwind
colors: {
  custom: {
    50: '#a85f82',
    500: '#7e1152',
    950: '#000000',
  },
}
SCSS
$custom: #7e1152;
$custom-light: #a85f82;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1152",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 324.22,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.39935,
    "c": 0.15269,
    "h": 350.6
  },
  "luminance": 0.05446
}

Semantic roles & 50–950 ramp

primary
#7E1152
secondary
#37B469
accent
#F38235
background
#FAF5F7
surface
#F4EAEE
border
#CEC6C9
text
#10050A
muted
#7F797C

Preview Lab

Preview with #7E1152

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

Preview Lab → · Contrast checker → · Palette generator →

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