#7E1851#7E1851

#7E1851 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.4% C 0.146 H 351.8°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#7E1851
RGBrgb(126, 24, 81)
HSLhsl(326, 68%, 29%)
HSVhsv(326, 81%, 49%)
CMYKcmyk(0%, 81%, 35.7%, 50.6%)
CIE-LABlab(28.60, 47.03, -8.01)
CIE-LCHlch(28.60, 47.71, 350.33°)
OKLaboklab(40.38% 0.1443 -0.0207)
OKLCHoklch(40.38% 0.146 351.8)
XYZxyz(10.4167, 5.6842, 8.3316)
Luminance0.0568 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1851 #187E45
analogous
#78187E #7E1851 #7E181E
triadic
#7E1851 #517E18 #18517E
tetradic
#7E1851 #7E7818 #187E45 #181E7E
square
#7E1851 #7E7818 #187E45 #181E7E
split-complementary
#7E1851 #1E7E18 #187E78
monochromatic
#1A0511 #4B0E30 #7E1851 #B12272 #D93792

Accessibility & contrast

On white

9.83
#7E1851 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7E1851 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1851
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1851#FFFFFF#000000##FFFFFF
##7E18511.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3852
Deuteranopia (green-blind)
#494A4F
Tritanopia (blue-blind)
#880E32
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1851;
/* rgb */ color: rgb(126, 24, 81);
/* oklch */ color: oklch(40.4% 0.146 351.8);
Tailwind
colors: {
  custom: {
    50: '#a86181',
    500: '#7e1851',
    950: '#000000',
  },
}
SCSS
$custom: #7e1851;
$custom-light: #a86181;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1851",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 81
  },
  "hsl": {
    "h": 326.471,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.40379,
    "c": 0.14576,
    "h": 351.8
  },
  "luminance": 0.05683
}

Semantic roles & 50–950 ramp

primary
#7E1851
secondary
#3FB272
accent
#EB8A3D
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7E1851

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

Preview Lab → · Contrast checker → · Palette generator →

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