#7E1858#7E1858

#7E1858 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.7% C 0.150 H 347.6°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#7E1858
RGBrgb(126, 24, 88)
HSLhsl(322, 68%, 29%)
HSVhsv(322, 81%, 49%)
CMYKcmyk(0%, 81%, 30.2%, 50.6%)
CIE-LABlab(28.89, 47.89, -12.19)
CIE-LCHlch(28.89, 49.42, 345.71°)
OKLaboklab(40.68% 0.1461 -0.0322)
OKLCHoklch(40.68% 0.15 347.6)
XYZxyz(10.6928, 5.7947, 9.7860)
Luminance0.0579 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1858 #187E3E
analogous
#71187E #7E1858 #7E1825
triadic
#7E1858 #587E18 #18587E
tetradic
#7E1858 #7E7118 #187E3E #18257E
square
#7E1858 #7E7118 #187E3E #18257E
split-complementary
#7E1858 #257E18 #187E71
monochromatic
#1A0512 #4B0E34 #7E1858 #B1227C #D9379D

Accessibility & contrast

On white

9.73
#7E1858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7E1858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1858
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1858#FFFFFF#000000##FFFFFF
##7E18581.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28395A
Deuteranopia (green-blind)
#474A56
Tritanopia (blue-blind)
#871336
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1858;
/* rgb */ color: rgb(126, 24, 88);
/* oklch */ color: oklch(40.7% 0.150 347.6);
Tailwind
colors: {
  custom: {
    50: '#a76187',
    500: '#7e1858',
    950: '#000000',
  },
}
SCSS
$custom: #7e1858;
$custom-light: #a76187;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1858",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 322.353,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.40682,
    "c": 0.14956,
    "h": 347.6
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

primary
#7E1858
secondary
#3FB26A
accent
#EB7E3D
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E1858

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

Preview Lab → · Contrast checker → · Palette generator →

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