#7E1257#7E1257

#7E1257 is a dark, vivid pink. Relative luminance 0.056; OKLCH L 40.2% C 0.155 H 347.7°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#7E1257
RGBrgb(126, 18, 87)
HSLhsl(322, 75%, 28%)
HSVhsv(322, 86%, 49%)
CMYKcmyk(0%, 85.7%, 31%, 50.6%)
CIE-LABlab(28.27, 49.42, -12.48)
CIE-LCHlch(28.27, 50.97, 345.82°)
OKLaboklab(40.22% 0.151 -0.0329)
OKLCHoklch(40.22% 0.155 347.7)
XYZxyz(10.5414, 5.5576, 9.5326)
Luminance0.0556 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1257 #127E39
analogous
#6F127E #7E1257 #7E1221
triadic
#7E1257 #577E12 #12577E
tetradic
#7E1257 #7E6F12 #127E39 #12217E
square
#7E1257 #7E6F12 #127E39 #12217E
split-complementary
#7E1257 #217E12 #127E6F
monochromatic
#1B0412 #480A32 #7E1257 #B41A7C #E12A9F

Accessibility & contrast

On white

9.95
#7E1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7E1257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1257
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1257#FFFFFF#000000##FFFFFF
##7E12571.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253759
Deuteranopia (green-blind)
#454955
Tritanopia (blue-blind)
#880B34
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1257;
/* rgb */ color: rgb(126, 18, 87);
/* oklch */ color: oklch(40.2% 0.155 347.7);
Tailwind
colors: {
  custom: {
    50: '#a85f86',
    500: '#7e1257',
    950: '#000000',
  },
}
SCSS
$custom: #7e1257;
$custom-light: #a85f86;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1257",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 321.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40218,
    "c": 0.15457,
    "h": 347.7
  },
  "luminance": 0.05556
}

Semantic roles & 50–950 ramp

primary
#7E1257
secondary
#38B465
accent
#F27A36
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050B
muted
#7F7A7C

Preview Lab

Preview with #7E1257

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

Preview Lab → · Contrast checker → · Palette generator →

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